Drop severity of master disconnect log when multimaster is enabled
Former-commit-id: edb993d52b25c30392c6eb1e60896498f991a223
This commit is contained in:
parent
85c8fc72b7
commit
6ab3e82e45
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user