]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Syslog messages now contain Warning:, Error: and Debug: prefixes also.
authorTimo Sirainen <tss@iki.fi>
Thu, 29 Apr 2010 14:33:05 +0000 (17:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 29 Apr 2010 14:33:05 +0000 (17:33 +0300)
So everything except Info: now has a prefix.

--HG--
branch : HEAD

src/lib/failures.c

index d2ac7de9d99849676a86a3c414a33c1d514f5165..ffd05b8cdb347bcc91aeb36730fdfbba2b5ef226 100644 (file)
@@ -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;