Skip to content

Commit

Permalink
Drop severity of master disconnect log when multimaster is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Jan 2, 2020
1 parent aea333b commit edb993d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/replication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit edb993d

Please sign in to comment.