From 9114299223dcb71173fb69963912526f8ec9dd60 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 28 May 2019 14:58:32 +0900 Subject: [PATCH] Tweak log output if attempted to register witness on primary cluster --- repmgr-action-witness.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repmgr-action-witness.c b/repmgr-action-witness.c index 14663fe7..e2070769 100644 --- a/repmgr-action-witness.c +++ b/repmgr-action-witness.c @@ -184,7 +184,9 @@ do_witness_register(void) primary_system_identifier != UNKNOWN_SYSTEM_IDENTIFIER) { log_error(_("witness node cannot be in the same cluster as the primary node")); - log_detail(_("primary id: %lu\n witness id: %lu"), primary_system_identifier, witness_system_identifier); + log_detail(_("database system identifiers on primary node and provided witness node match (%lu)"), + primary_system_identifier); + log_hint(_("the witness node must be created on a separate read/write node")); PQfinish(witness_conn); PQfinish(primary_conn);