From: Timo Sirainen Date: Fri, 20 Sep 2013 07:11:45 +0000 (+0300) Subject: director: Fix & improvement to debug logging. X-Git-Tag: 2.2.6~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d2575d99e43d08898c44d861f1a2e1377043c1e;p=thirdparty%2Fdovecot%2Fcore.git director: Fix & improvement to debug logging. --- diff --git a/src/director/director-connection.c b/src/director/director-connection.c index b52bcfe6b0..fe902c235f 100644 --- a/src/director/director-connection.c +++ b/src/director/director-connection.c @@ -1122,8 +1122,10 @@ director_connection_sync_host(struct director_connection *conn, } 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 @@ director_connection_sync_host(struct director_connection *conn, /* 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; }