Change some repmgrd log messages to NOTICE

So key events during failover on promoted and following standbys
logged at the same level.
This commit is contained in:
Ian Barwick
2016-01-27 18:39:27 +09:00
parent 1a6d830314
commit e859a58405

View File

@@ -1478,7 +1478,7 @@ do_master_failover(void)
/* wait */
sleep(10);
log_info(_("node %d is the best candidate for new master, attempting to follow...\n"),
log_notice(_("node %d is the best candidate for new master, attempting to follow...\n"),
best_candidate.node_id);
/*
@@ -1524,11 +1524,11 @@ do_master_failover(void)
node_info = get_node_info(new_master_conn, local_options.cluster_name, local_options.node);
appendPQExpBuffer(&event_details,
_("Node %i now following new upstream node %i"),
_("node %i now following new upstream node %i"),
node_info.node_id,
best_candidate.node_id);
log_info("%s\n", event_details.data);
log_notice("%s\n", event_details.data);
create_event_record(new_master_conn,
&local_options,