From ecfefde76050afb81f119a401ed0bb7d8223e3d5 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 25 Jan 2014 11:53:53 +0100 Subject: [PATCH] Don't log MONITOR clients as disconnecting slaves. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index 6bcbb66f..e0e60512 100644 --- a/src/networking.c +++ b/src/networking.c @@ -650,7 +650,7 @@ void freeClient(redisClient *c) { } /* Log link disconnection with slave */ - if (c->flags & REDIS_SLAVE) { + if ((c->flags & REDIS_SLAVE) && !(c->flags & REDIS_MONITOR)) { char ip[REDIS_IP_STR_LEN]; if (anetPeerToString(c->fd,ip,sizeof(ip),NULL) != -1) {