log to syslog even if in foreground

This commit is contained in:
Yves Rutschle committed 2020-05-28 10:13:54 +00:00
1 parent 61191edf7c
commit c595aadb4d
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -561,8 +561,8 @@ void log_message(int type, const char* msg, ...)
va_start(ap, msg);
if (cfg.foreground)
vfprintf(stderr, msg, ap);
else
vsyslog(type, msg, ap);
vsyslog(type, msg, ap);
va_end(ap);
}