dovecot-2.2: director: Fix & improvement to debug logging.

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 20 10:12:38 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/22a3ef9a006d
changeset: 16787:22a3ef9a006d
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 20 10:11:45 2013 +0300
description:
director: Fix & improvement to debug logging.

diffstat:

 src/director/director-connection.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 17389ac3cb66 -r 22a3ef9a006d src/director/director-connection.c
--- a/src/director/director-connection.c	Fri Sep 20 10:00:48 2013 +0300
+++ b/src/director/director-connection.c	Fri Sep 20 10:11:45 2013 +0300
@@ -1122,8 +1122,10 @@
 	} else {
 		if (seq < host->last_sync_seq) {
 			/* stale SYNC event */
-			dir_debug("Ignore stale SYNC event for %s (seq %u < %u)",
-				  host->name, seq, host->last_sync_seq);
+			dir_debug("Ignore stale SYNC event for %s "
+				  "(seq %u < %u, timestamp=%u)",
+				  host->name, seq, host->last_sync_seq,
+				  timestamp);
 			return FALSE;
 		} else if (host->last_sync_seq != seq ||
 			   timestamp > host->last_sync_timestamp) {
@@ -1137,7 +1139,7 @@
 			/* we've received this too many times already */
 			dir_debug("Ignore duplicate #%u SYNC event for %s "
 				  "(seq=%u, timestamp %u <= %u)",
-				  host->name, host->last_sync_seq_counter, seq,
+				  host->last_sync_seq_counter, host->name, seq,
 				  timestamp, host->last_sync_timestamp);
 			return FALSE;
 		}


More information about the dovecot-cvs mailing list