]> the.earth.li Git - onak.git/commitdiff
Quieten cleanup infrastructure.
authorJonathan McDowell <noodles@earth.li>
Tue, 14 Sep 2004 18:31:16 +0000 (18:31 +0000)
committerJonathan McDowell <noodles@earth.li>
Tue, 14 Sep 2004 18:31:16 +0000 (18:31 +0000)
Lower the loglevel output of the cleanup infrastructure to INFO rather
than NOTICE; ie don't show it on the default install.

cleanup.c

index 9d5e24af48c0211916ab96cc1eb8d6a463bf803f..32b997a5498e2de7c531738d2589e923ffe87783 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -24,7 +24,7 @@ static bool should_cleanup = false;
  */
 void trytocleanup(void)
 {
-       logthing(LOGTHING_NOTICE, "Setting cleanup flag.");
+       logthing(LOGTHING_INFO, "Setting cleanup flag.");
        should_cleanup = true;
 
        return;
@@ -49,7 +49,7 @@ bool cleanup(void)
  */
 void sig_cleanup(int signal)
 {
-       logthing(LOGTHING_NOTICE, "Got signal %d.", signal);
+       logthing(LOGTHING_INFO, "Got signal %d.", signal);
        trytocleanup();
 
        return;
@@ -66,7 +66,7 @@ void catchsignals(void)
 {
        struct sigaction alarmh;
 
-       logthing(LOGTHING_NOTICE, "Catching signals");
+       logthing(LOGTHING_INFO, "Catching signals");
 
        memset(&alarmh, 0, sizeof(alarmh));
        alarmh.sa_handler = sig_cleanup;