mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Only log that we have restored the connection when that already happens,
this fix a flood in logs that make them unnecessarily big
This commit is contained in:
committed by
Jaime Casanova
parent
04290c1f60
commit
158214acae
@@ -759,8 +759,11 @@ CheckPrimaryConnection(void)
|
|||||||
sleep(SLEEP_RETRY);
|
sleep(SLEEP_RETRY);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if ( connection_retries > 0)
|
||||||
{
|
{
|
||||||
log_info(_("%s: Connection to master has been restored.\n"), progname);
|
log_info(_("%s: Connection to master has been restored.\n"), progname);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user