dovecot-1.2: Add "dovecot: " log prefix only for messages from m...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 17 22:05:46 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/194b80691980
changeset: 9032:194b80691980
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 15:05:39 2009 -0400
description:
Add "dovecot: " log prefix only for messages from master process.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/master/log.c |    4 +++-

diffs (14 lines):

diff -r 0669bc561763 -r 194b80691980 src/master/log.c
--- a/src/master/log.c	Sun May 17 15:05:00 2009 -0400
+++ b/src/master/log.c	Sun May 17 15:05:39 2009 -0400
@@ -148,7 +148,9 @@ static int log_it(struct log_io *log_io,
 		log_type = LOG_TYPE_ERROR;
 		break;
 	}
-	i_log_type(log_type, "%s%s", prefix, line);
+	i_set_failure_prefix(prefix);
+	i_log_type(log_type, "%s", line);
+	i_set_failure_prefix("dovecot: ");
 
 	if (!continues)
 		log_io->next_log_type = '\0';


More information about the dovecot-cvs mailing list