Always log to syslog, regardless of mode
This commit is contained in:
parent
d0ec200a27
commit
2b14f82040
|
@ -29,9 +29,8 @@ void do_log(int level, const char* fmt, ...)
|
||||||
|
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
|
|
||||||
if(Daemon) {
|
|
||||||
vsyslog(level, fmt, va);
|
vsyslog(level, fmt, va);
|
||||||
} else {
|
if(!Daemon) {
|
||||||
FILE* out = stdout;
|
FILE* out = stdout;
|
||||||
|
|
||||||
switch(level) {
|
switch(level) {
|
||||||
|
|
Loading…
Reference in New Issue