diff options
Diffstat (limited to 'src/networking.c')
-rw-r--r-- | src/networking.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/networking.c b/src/networking.c index c7b1c9ba7..cc9bbd98c 100644 --- a/src/networking.c +++ b/src/networking.c @@ -678,12 +678,8 @@ void freeClient(redisClient *c) { /* Log link disconnection with 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) { - redisLog(REDIS_WARNING,"Connection with slave %s:%d lost.", - ip, c->slave_listening_port); - } + redisLog(REDIS_WARNING,"Connection with slave %s lost.", + replicationGetSlaveName(c)); } /* Free the query buffer */ |