]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Fix & improvement to debug logging.
authorTimo Sirainen <tss@iki.fi>
Fri, 20 Sep 2013 07:11:45 +0000 (10:11 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 20 Sep 2013 07:11:45 +0000 (10:11 +0300)
src/director/director-connection.c

index b52bcfe6b0bf52178ce289be8fb0998ee557b3a3..fe902c235f4d49fe12c6f2916411b25c3b66f784 100644 (file)
@@ -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;
                }