All but LOG_INFO and LOG_DEBUG are logged to syslog.

*If* syslog logging is enabled, then all messages but LOG_INFO
and LOG_DEBUG are logged to syslog.
This commit is contained in:
Johan Wikman
2015-11-24 21:50:08 +02:00
parent af6ec7f346
commit 01f2aa8d1b

View File

@ -754,15 +754,17 @@ static int logmanager_write_log(int priority,
switch (priority)
{
case LOG_EMERG:
case LOG_ALERT:
case LOG_CRIT:
case LOG_ERR:
syslog(LOG_ERR, "%s", message);
break;
case LOG_WARNING:
case LOG_NOTICE:
syslog(LOG_NOTICE, "%s", message);
syslog(priority, "%s", message);
break;
default:
// LOG_INFO and LOG_DEBUG messages are never written to syslog.
break;
}
}