Fix problem with duplicate log messages before syslogd has started

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-12-13 17:58:48 +01:00
parent 5dc4e7c058
commit 77cd0f0243
+1 -1
View File
@@ -63,7 +63,7 @@ void log_open(void)
closelog();
if (debug)
opts |= LOG_CONS | LOG_PERROR;
opts |= LOG_PERROR; /* LOG_CONS | */
openlog("finit", opts, LOG_DAEMON);
setlogmask(LOG_UPTO(loglevel));