From da315d3325eae646b88f49cac3bd4b4f2bd582aa Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 1 Feb 2013 13:01:01 +0100 Subject: [PATCH] Log the unexpected string received in place of the SYNC payload length. --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index 157cbcfe..ec36000b 100644 --- a/src/replication.c +++ b/src/replication.c @@ -722,7 +722,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) { server.repl_transfer_lastio = server.unixtime; return; } else if (buf[0] != '$') { - redisLog(REDIS_WARNING,"Bad protocol from MASTER, the first byte is not '$', are you sure the host and port are right?"); + redisLog(REDIS_WARNING,"Bad protocol from MASTER, the first byte is not '$' (we received '%s'), are you sure the host and port are right?", buf); goto error; } server.repl_transfer_size = strtol(buf+1,NULL,10);