repmgrd: fix logging when reloading configuration

This commit is contained in:
Ian Barwick
2017-09-08 14:52:33 +09:00
parent e4f7dc8234
commit ba38b99590

View File

@@ -1003,6 +1003,8 @@ reload_config(t_configuration_options *orig_options)
clear_event_notification_list(orig_options); clear_event_notification_list(orig_options);
orig_options->event_notifications = new_options.event_notifications; orig_options->event_notifications = new_options.event_notifications;
config_changed = true;
} }
/* failover */ /* failover */
@@ -1136,11 +1138,15 @@ reload_config(t_configuration_options *orig_options)
log_notice(_("configuration file reloaded with changed parameters")); 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 * neither logging nor other configuration has changed
* change, as it clearly has.
*/ */
else if (log_config_changed == false && config_changed == false)
{ {
log_info(_("configuration has not changed")); log_info(_("configuration has not changed"));
} }