Fix debugging output

This commit is contained in:
Ian Barwick
2019-08-21 15:52:08 +09:00
parent b4e6922a26
commit f122c44a77

View File

@@ -7140,8 +7140,6 @@ create_recovery_file(t_node_info *node_record, t_conninfo_param_list *primary_co
return false; return false;
} }
log_debug("recovery file is:\n%s", recovery_file_buf.data);
for (cell = recovery_config.head; cell; cell = cell->next) for (cell = recovery_config.head; cell; cell = cell->next)
{ {
initPQExpBuffer(&recovery_file_buf); 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", "%s = '%s'\n",
cell->key, cell->value); cell->key, cell->value);
log_debug("recovery.conf line: %s", recovery_file_buf.data);
if (fputs(recovery_file_buf.data, recovery_file) == EOF) if (fputs(recovery_file_buf.data, recovery_file) == EOF)
{ {
log_error(_("unable to write to recovery file at \"%s\""), recovery_file_path); log_error(_("unable to write to recovery file at \"%s\""), recovery_file_path);