masqmail
diff src/log.c @ 395:5f0829f8e6c7
Removed log_max_pri limit. It makes no sense.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 18 Feb 2012 19:39:11 +0100 |
parents | 9bc3e47b0222 |
children | 19be3b27df6f |
line diff
1.1 --- a/src/log.c Sat Feb 18 19:32:40 2012 +0100 1.2 +++ b/src/log.c Sat Feb 18 19:39:11 2012 +0100 1.3 @@ -125,20 +125,20 @@ 1.4 if (!pri) { 1.5 return; 1.6 } 1.7 - if (conf.use_syslog) 1.8 + if (conf.use_syslog) { 1.9 vsyslog(pri, fmt, args); 1.10 - else if (pri <= conf.log_max_pri) { 1.11 - FILE *file = logfile ? logfile : stderr; 1.12 - time_t now = time(NULL); 1.13 - struct tm *t = localtime(&now); 1.14 - gchar buf[24]; 1.15 + return; 1.16 + } 1.17 + FILE *file = logfile ? logfile : stderr; 1.18 + time_t now = time(NULL); 1.19 + struct tm *t = localtime(&now); 1.20 + gchar buf[24]; 1.21 1.22 - strftime(buf, 24, "%Y-%m-%d %H:%M:%S", t); 1.23 - fprintf(file, "%s [%d] ", buf, getpid()); 1.24 + strftime(buf, 24, "%Y-%m-%d %H:%M:%S", t); 1.25 + fprintf(file, "%s [%d] ", buf, getpid()); 1.26 1.27 - vfprintf(file, fmt, args); 1.28 - fflush(file); 1.29 - } 1.30 + vfprintf(file, fmt, args); 1.31 + fflush(file); 1.32 } 1.33 1.34 #ifdef ENABLE_DEBUG