From f122c44a7705f54506d78e81064a338abb98c306 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 21 Aug 2019 15:52:08 +0900 Subject: [PATCH] Fix debugging output --- repmgr-action-standby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index ba0be6aa..a9649008 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -7140,8 +7140,6 @@ create_recovery_file(t_node_info *node_record, t_conninfo_param_list *primary_co return false; } - log_debug("recovery file is:\n%s", recovery_file_buf.data); - for (cell = recovery_config.head; cell; cell = cell->next) { initPQExpBuffer(&recovery_file_buf); @@ -7149,6 +7147,8 @@ create_recovery_file(t_node_info *node_record, t_conninfo_param_list *primary_co "%s = '%s'\n", cell->key, cell->value); + log_debug("recovery.conf line: %s", recovery_file_buf.data); + if (fputs(recovery_file_buf.data, recovery_file) == EOF) { log_error(_("unable to write to recovery file at \"%s\""), recovery_file_path);