dovecot-1.2: logging: Write log prefix after timestamp, not before.

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/0669bc561763
changeset: 9031:0669bc561763
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 15:05:00 2009 -0400
description:
logging: Write log prefix after timestamp, not before.

diffstat:

1 file changed, 2 insertions(+), 3 deletions(-)
src/lib/failures.c |    5 ++---

diffs (22 lines):

diff -r 125862a5b52f -r 0669bc561763 src/lib/failures.c
--- a/src/lib/failures.c	Sun May 17 14:59:51 2009 -0400
+++ b/src/lib/failures.c	Sun May 17 15:05:00 2009 -0400
@@ -59,9 +59,6 @@ static void log_prefix_add(string_t *str
 	char buf[256];
 	time_t now;
 
-	if (log_prefix != NULL)
-		str_append(str, log_prefix);
-
 	if (log_stamp_format != NULL) {
 		now = time(NULL);
 		tm = localtime(&now);
@@ -70,6 +67,8 @@ static void log_prefix_add(string_t *str
 			     get_log_stamp_format("unused"), tm) > 0)
 			str_append(str, buf);
 	}
+	if (log_prefix != NULL)
+		str_append(str, log_prefix);
 }
 
 static void log_fd_flush_stop(struct ioloop *ioloop)


More information about the dovecot-cvs mailing list