From ba38b99590a8c9a126f0f854ef3aeff3acf82bf8 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 8 Sep 2017 14:52:33 +0900 Subject: [PATCH] repmgrd: fix logging when reloading configuration --- configfile.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configfile.c b/configfile.c index 0b6b6043..b7eb5631 100644 --- a/configfile.c +++ b/configfile.c @@ -1003,6 +1003,8 @@ reload_config(t_configuration_options *orig_options) clear_event_notification_list(orig_options); orig_options->event_notifications = new_options.event_notifications; + + config_changed = true; } /* failover */ @@ -1136,11 +1138,15 @@ reload_config(t_configuration_options *orig_options) log_notice(_("configuration file reloaded with changed parameters")); } + if (config_changed == true) + { + log_info(_("configuration has changed")); + } + /* - * if logging configuration changed, don't say the configuration didn't - * change, as it clearly has. + * neither logging nor other configuration has changed */ - else + if (log_config_changed == false && config_changed == false) { log_info(_("configuration has not changed")); }