repmgrd: various minor logging improvements

This commit is contained in:
Ian Barwick
2019-03-13 11:27:17 +09:00
committed by Ian Barwick
parent ecb1f379f5
commit 52bee6b98d
2 changed files with 2 additions and 3 deletions

View File

@@ -1040,7 +1040,7 @@ monitor_streaming_standby(void)
if (PQstatus(upstream_conn) == CONNECTION_OK)
{
log_debug(" upstream node %i has recovered",
log_debug("upstream node %i has recovered",
upstream_node_info.node_id);
/* XXX check here if upstream is still primary */

View File

@@ -910,8 +910,7 @@ try_reconnect(PGconn **conn, t_node_info *node_info)
node_info->node_id, i + 1, max_attempts);
if (is_server_available_params(&conninfo_params) == true)
{
log_notice(_("node has recovered, reconnecting"));
log_notice(_("node %i has recovered, reconnecting"), node_info->node_id);
/*
* XXX we should also handle the case where node is pingable but