severity 447200 important
stop

        Hi,

 I'm taking the liberty to bump this slightly up as we're at least 3
 affected by this; I'm attaching a patch which works for me.

On Thu, Oct 18, 2007, Maximilian Engelhardt wrote:
> When I start acpid I'm getting lots of messages in my syslog logfile that
> make it quite unreadable. Every minute acpid logs 25 lines which is already a
> lot if is is only running for an hour.
> It would be nice if acpid could be configured to stop logging too much or even
> better if it would automatically stop doing this.
> 
> This is what I get in my syslog file:
> 
> Oct 18 22:53:04 koala acpid: received event "battery BAT1 00000080 00000001"
> Oct 18 22:53:04 koala acpid: notifying client 3788[105:109]
> Oct 18 22:53:04 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT1 00000080 00000001"
> Oct 18 22:53:06 koala acpid: action exited with status 0
> Oct 18 22:53:06 koala acpid: completed event "battery BAT1 00000080 00000001"
> Oct 18 22:53:06 koala acpid: received event "battery BAT1 00000000 00000001"
> Oct 18 22:53:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:53:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT1 00000000 00000001"
> Oct 18 22:53:06 koala acpid: action exited with status 0
> Oct 18 22:53:06 koala acpid: completed event "battery BAT1 00000000 00000001"
> Oct 18 22:53:06 koala acpid: received event "battery BAT2 00000080 00000000"
> Oct 18 22:53:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:53:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT2 00000080 00000000"
> Oct 18 22:53:06 koala acpid: action exited with status 0
> Oct 18 22:53:06 koala acpid: completed event "battery BAT2 00000080 00000000"
> Oct 18 22:53:06 koala acpid: received event "battery BAT2 00000000 00000000"
> Oct 18 22:53:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:53:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT2 00000000 00000000"
> Oct 18 22:53:06 koala acpid: action exited with status 0
> Oct 18 22:53:06 koala acpid: completed event "battery BAT2 00000000 00000000"
> Oct 18 22:53:06 koala acpid: received event "ac_adapter ACAD 00000000 
> 00000001"
> Oct 18 22:53:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:53:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_ac_adapter.sh ac_adapter ACAD 00000000 00000001"
> Oct 18 22:53:06 koala acpid: action exited with status 0
> Oct 18 22:53:06 koala acpid: completed event "ac_adapter ACAD 00000000 
> 00000001"
> 
> Oct 18 22:54:05 koala acpid: received event "battery BAT1 00000080 00000001"
> Oct 18 22:54:05 koala acpid: notifying client 3788[105:109]
> Oct 18 22:54:05 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT1 00000080 00000001"
> Oct 18 22:54:05 koala acpid: action exited with status 0
> Oct 18 22:54:05 koala acpid: completed event "battery BAT1 00000080 00000001"
> Oct 18 22:54:05 koala acpid: received event "battery BAT1 00000000 00000001"
> Oct 18 22:54:05 koala acpid: notifying client 3788[105:109]
> Oct 18 22:54:05 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT1 00000000 00000001"
> Oct 18 22:54:05 koala acpid: action exited with status 0
> Oct 18 22:54:05 koala acpid: completed event "battery BAT1 00000000 00000001"
> Oct 18 22:54:05 koala acpid: received event "battery BAT2 00000080 00000000"
> Oct 18 22:54:05 koala acpid: notifying client 3788[105:109]
> Oct 18 22:54:05 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT2 00000080 00000000"
> Oct 18 22:54:06 koala acpid: action exited with status 0
> Oct 18 22:54:06 koala acpid: completed event "battery BAT2 00000080 00000000"
> Oct 18 22:54:06 koala acpid: received event "battery BAT2 00000000 00000000"
> Oct 18 22:54:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:54:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT2 00000000 00000000"
> Oct 18 22:54:06 koala acpid: action exited with status 0
> Oct 18 22:54:06 koala acpid: completed event "battery BAT2 00000000 00000000"
> Oct 18 22:54:06 koala acpid: received event "ac_adapter ACAD 00000000 
> 00000001"
> Oct 18 22:54:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:54:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_ac_adapter.sh ac_adapter ACAD 00000000 00000001"
> Oct 18 22:54:06 koala acpid: action exited with status 0
> Oct 18 22:54:06 koala acpid: completed event "ac_adapter ACAD 00000000 
> 00000001"
> 
> Oct 18 22:55:06 koala acpid: received event "battery BAT1 00000080 00000001"
> Oct 18 22:55:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:55:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT1 00000080 00000001"
> Oct 18 22:55:06 koala acpid: action exited with status 0
> Oct 18 22:55:06 koala acpid: completed event "battery BAT1 00000080 00000001"
> Oct 18 22:55:06 koala acpid: received event "battery BAT1 00000000 00000001"
> Oct 18 22:55:06 koala acpid: notifying client 3788[105:109]
> Oct 18 22:55:06 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT1 00000000 00000001"
> Oct 18 22:55:07 koala acpid: action exited with status 0
> Oct 18 22:55:07 koala acpid: completed event "battery BAT1 00000000 00000001"
> Oct 18 22:55:07 koala acpid: received event "battery BAT2 00000080 00000000"
> Oct 18 22:55:07 koala acpid: notifying client 3788[105:109]
> Oct 18 22:55:07 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT2 00000080 00000000"
> Oct 18 22:55:07 koala acpid: action exited with status 0
> Oct 18 22:55:07 koala acpid: completed event "battery BAT2 00000080 00000000"
> Oct 18 22:55:07 koala acpid: received event "battery BAT2 00000000 00000000"
> Oct 18 22:55:07 koala acpid: notifying client 3788[105:109]
> Oct 18 22:55:07 koala acpid: executing action 
> "/etc/acpi/actions/lm_battery.sh battery BAT2 00000000 00000000"
> Oct 18 22:55:07 koala acpid: action exited with status 0
> Oct 18 22:55:07 koala acpid: completed event "battery BAT2 00000000 00000000"
> Oct 18 22:55:07 koala acpid: received event "ac_adapter ACAD 00000000 
> 00000001"
> Oct 18 22:55:07 koala acpid: notifying client 3788[105:109]
> Oct 18 22:55:07 koala acpid: executing action 
> "/etc/acpi/actions/lm_ac_adapter.sh ac_adapter ACAD 00000000 00000001"
> Oct 18 22:55:07 koala acpid: action exited with status 0
> Oct 18 22:55:07 koala acpid: completed event "ac_adapter ACAD 00000000 
> 00000001"
> 
> --- System information. ---
> Architecture: i386
> Kernel:       Linux 2.6.23-git2
> 
> Debian Release: lenny/sid
>   500 unstable        ftp.hosteurope.de 
>   500 unstable        debian.netcologne.de 
>   500 unstable        deb.opera.com 
>   500 testing         security.debian.org 
> 
> --- Package information. ---
> Depends         (Version) | Installed
> =========================-+-=============
> libc6        (>= 2.6.1-1) | 2.6.1-5
> lsb-base      (>= 3.0-10) | 3.1-24
> 



-- 
Loïc Minier
diff -u acpid-1.0.6/debian/changelog acpid-1.0.6/debian/changelog
--- acpid-1.0.6/debian/changelog
+++ acpid-1.0.6/debian/changelog
@@ -1,3 +1,10 @@
+acpid (1.0.6-5.1~dooz1) unstable; urgency=low
+
+  * Limit syslog messages to >= NOTICE to avoid spamming unless in debug mode;
+    closes: #447200.
+
+ -- Loic Minier <[EMAIL PROTECTED]>  Wed, 05 Mar 2008 23:18:02 +0100
+
 acpid (1.0.6-5.1) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- acpid-1.0.6.orig/acpid.c
+++ acpid-1.0.6/acpid.c
@@ -411,6 +411,10 @@
                log_opts |= LOG_PERROR;
        }
        openlog(PACKAGE, log_opts, LOG_DAEMON);
+       /* Debian: restrict logging to >= NOTICE; #447200 */
+       if (!acpid_debug) {
+               setlogmask(LOG_UPTO(LOG_NOTICE));
+       }
 
        /* set up stdin, stdout, stderr to /dev/null */
        if (dup2(nullfd, STDIN_FILENO) != STDIN_FILENO) {

Reply via email to