From 158214acae0eea4965ee3719a5c86379e4b8daab Mon Sep 17 00:00:00 2001 From: Carlo Ascani Date: Tue, 26 Jul 2011 18:16:22 -0500 Subject: [PATCH] Only log that we have restored the connection when that already happens, this fix a flood in logs that make them unnecessarily big --- repmgrd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repmgrd.c b/repmgrd.c index 9e944974..60456bb0 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -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; } }