From e782f2d94959c9f1d7de6e425893b7478e34c4f0 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 20 Feb 2020 13:06:41 +0900 Subject: [PATCH] repmgrd: improve logging For easier log analysis, state which node is the current primary. --- repmgrd-physical.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repmgrd-physical.c b/repmgrd-physical.c index 578589fc..d7260966 100644 --- a/repmgrd-physical.c +++ b/repmgrd-physical.c @@ -4029,7 +4029,9 @@ do_election(NodeInfoList *sibling_nodes, int *new_primary_id) } else { - log_info(_("primary and this node have the same location (\"%s\")"), + log_info(_("primary node \"%s\" (ID: %i) and this node have the same location (\"%s\")"), + upstream_node_info.node_name, + upstream_node_info.node_id, local_node_info.location); }