From 9d2575d99e43d08898c44d861f1a2e1377043c1e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 20 Sep 2013 10:11:45 +0300 Subject: [PATCH] director: Fix & improvement to debug logging. --- src/director/director-connection.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.47.3