changeset 16787:22a3ef9a006d

director: Fix & improvement to debug logging.
author Timo Sirainen <tss@iki.fi>
date Fri, 20 Sep 2013 10:11:45 +0300
parents 17389ac3cb66
children b78c705bbb8d
files src/director/director-connection.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}