From edb993d52b25c30392c6eb1e60896498f991a223 Mon Sep 17 00:00:00 2001 From: John Sully Date: Thu, 2 Jan 2020 15:36:02 -0500 Subject: [PATCH] Drop severity of master disconnect log when multimaster is enabled --- src/replication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/replication.cpp b/src/replication.cpp index ec2bbea63..b8236420d 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -2298,7 +2298,8 @@ int connectWithMaster(redisMaster *mi) { fd = anetTcpNonBlockBestEffortBindConnect(NULL, mi->masterhost,mi->masterport,NET_FIRST_BIND_ADDR); if (fd == -1) { - serverLog(LL_WARNING,"Unable to connect to MASTER: %s", + int sev = g_pserver->enable_multimaster ? LL_NOTICE : LL_WARNING; // with multimaster its not unheard of to intentiallionall have downed masters + serverLog(sev,"Unable to connect to MASTER: %s", strerror(errno)); return C_ERR; }