syslog: setlogmask() to include LOG_INFO
authorMartin Willi <martin@revosec.ch>
Wed, 15 May 2013 08:36:08 +0000 (10:36 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 10:17:54 +0000 (12:17 +0200)
LOG_INFO seems to be excluded by default on some systems (OS X).

src/libcharon/bus/listeners/sys_logger.c

index 82e2c8e..4aeb1c0 100644 (file)
@@ -173,6 +173,7 @@ sys_logger_t *sys_logger_create(int facility)
        );
 
        set_level(this, DBG_ANY, LEVEL_SILENT);
+       setlogmask(LOG_UPTO(LOG_INFO));
 
        return &this->public;
 }