From 555351f8c1ade8886ef448f51eaabebea241d716 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 15 Apr 2020 10:24:44 +0900 Subject: [PATCH] standby switchover: standardize log message --- repmgr-action-standby.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index e3027303..1920df71 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -4052,11 +4052,13 @@ do_standby_switchover(void) if (parse_data_directory_config(command_output.data) == false) { - log_error(_("\"data_directory\" parameter in repmgr.conf on \"%s\" is incorrectly configured"), - remote_node_record.node_name); + log_error(_("\"data_directory\" parameter in \"repmgr.conf\" on \"%s\" (ID: %i) is incorrectly configured"), + remote_node_record.node_name, + remote_node_record.node_id); - log_hint(_("execute \"repmgr node check --data-directory-config\" on \"%s\" to diagnose the issue"), - remote_node_record.node_name); + log_hint(_("execute \"repmgr node check --data-directory-config\" on \"%s\" (ID: %i) to diagnose the issue"), + remote_node_record.node_name, + remote_node_record.node_id); PQfinish(remote_conn); PQfinish(local_conn);