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:
Carlo Ascani
2011-07-26 18:16:22 -05:00
committed by Jaime Casanova
parent 04290c1f60
commit 158214acae

View File

@@ -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;
} }
} }