Always log to syslog, regardless of mode

This commit is contained in:
Laurence Withers 2006-12-01 19:25:46 +00:00
parent d0ec200a27
commit 2b14f82040
1 changed files with 2 additions and 3 deletions

View File

@ -29,9 +29,8 @@ void do_log(int level, const char* fmt, ...)
va_start(va, fmt);
if(Daemon) {
vsyslog(level, fmt, va);
} else {
vsyslog(level, fmt, va);
if(!Daemon) {
FILE* out = stdout;
switch(level) {