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

@@ -760,7 +760,10 @@ CheckPrimaryConnection(void)
}
else
{
log_info(_("%s: Connection to master has been restored.\n"), progname);
if ( connection_retries > 0)
{
log_info(_("%s: Connection to master has been restored.\n"), progname);
}
break;
}
}