[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: acpid and logging



Kjartan Maraas napsal(a):
> I don't see many events per second, but still acpid is flooding syslog:
> 
> [root localhost log]# tail -f /var/log/messages
> Oct 11 09:42:26 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:42:26 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:42:27 localhost acpid: received event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:42:27 localhost acpid: notifying client 2001[68:68]
> Oct 11 09:42:27 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:42:27 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:42:41 localhost acpid: received event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:42:41 localhost acpid: notifying client 2001[68:68]
> Oct 11 09:42:41 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:42:41 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:43:00 localhost acpid: received event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:43:00 localhost acpid: notifying client 2001[68:68]
> Oct 11 09:43:00 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:43:00 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:43:43 localhost acpid: received event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:43:43 localhost acpid: notifying client 2001[68:68]
> Oct 11 09:43:43 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:43:43 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:44:16 localhost acpid: received event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:44:16 localhost acpid: notifying client 2001[68:68]
> Oct 11 09:44:16 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:44:16 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:44:57 localhost acpid: received event "thermal_zone TZ0 00000081 00000000"
> Oct 11 09:44:57 localhost acpid: notifying client 2001[68:68]
> Oct 11 09:44:57 localhost acpid: notifying client 2145[0:0]
> Oct 11 09:44:57 localhost acpid: completed event "thermal_zone TZ0 00000081 00000000"
> 
> Do we really neew to log all these?

As Steve Grubb wrote, probably the best solution for that is log only messages
with warnings or error priority. Messages above have notify and info priority,
so if acpid is not running with -d as a parameter (in debug mode), then those
messages should not be logged into syslog.

Zdenek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]