From 573d027db6d6d0065139219c5e5f61ab4e800201 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 13 Mar 2019 11:27:17 +0900 Subject: [PATCH] repmgrd: various minor logging improvements --- repmgrd-physical.c | 2 +- repmgrd.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/repmgrd-physical.c b/repmgrd-physical.c index cc12117f..6296d92f 100644 --- a/repmgrd-physical.c +++ b/repmgrd-physical.c @@ -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 */ diff --git a/repmgrd.c b/repmgrd.c index 7a9a5bda..05e2c7e4 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -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