Mercurial > 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 wrap: on
line diff
--- a/src/log.c Sat Feb 18 19:32:40 2012 +0100 +++ b/src/log.c Sat Feb 18 19:39:11 2012 +0100 @@ -125,20 +125,20 @@ if (!pri) { return; } - if (conf.use_syslog) + if (conf.use_syslog) { vsyslog(pri, fmt, args); - else if (pri <= conf.log_max_pri) { - FILE *file = logfile ? logfile : stderr; - time_t now = time(NULL); - struct tm *t = localtime(&now); - gchar buf[24]; + return; + } + FILE *file = logfile ? logfile : stderr; + time_t now = time(NULL); + struct tm *t = localtime(&now); + gchar buf[24]; - strftime(buf, 24, "%Y-%m-%d %H:%M:%S", t); - fprintf(file, "%s [%d] ", buf, getpid()); + strftime(buf, 24, "%Y-%m-%d %H:%M:%S", t); + fprintf(file, "%s [%d] ", buf, getpid()); - vfprintf(file, fmt, args); - fflush(file); - } + vfprintf(file, fmt, args); + fflush(file); } #ifdef ENABLE_DEBUG