From: Timo Sirainen Date: Thu, 29 Apr 2010 14:33:05 +0000 (+0300) Subject: Syslog messages now contain Warning:, Error: and Debug: prefixes also. X-Git-Tag: 2.0.beta5~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71794409a7804448fc316450247593155c097c9b;p=thirdparty%2Fdovecot%2Fcore.git Syslog messages now contain Warning:, Error: and Debug: prefixes also. So everything except Info: now has a prefix. --HG-- branch : HEAD --- diff --git a/src/lib/failures.c b/src/lib/failures.c index d2ac7de9d9..ffd05b8cdb 100644 --- a/src/lib/failures.c +++ b/src/lib/failures.c @@ -346,11 +346,11 @@ syslog_handler(int level, enum log_type type, const char *format, va_list args) recursed++; /* syslogs don't generatelly bother to log the level in any way, - so make sure fatals and panics are shown clearly */ + so make sure errors are shown clearly */ T_BEGIN { syslog(level, "%s%s%s", log_prefix == NULL ? "" : log_prefix, - type == LOG_TYPE_FATAL || type == LOG_TYPE_PANIC ? + type != LOG_TYPE_INFO ? failure_log_type_prefixes[type] : "", t_strdup_vprintf(format, args)); } T_END;