Log pg_control access errors as WARNINGs rather than DEBUG

This will make it easier to diagnose issues, possibly with an incorrect
"data_directory" setting in "repmgr.conf".
This commit is contained in:
Ian Barwick
2018-03-30 11:24:44 +09:00
parent 505d72d19c
commit 28c7737dc0
2 changed files with 9 additions and 6 deletions

View File

@@ -1384,7 +1384,7 @@ can_use_pg_rewind(PGconn *conn, const char *data_directory, PQExpBufferData *rea
appendPQExpBuffer(reason, "; ");
appendPQExpBuffer(reason,
_("\"wal_log_hints\" is set to \"off\" but unable to determine checksum version"));
_("\"wal_log_hints\" is set to \"off\" but unable to determine data checksum version"));
can_use = false;
}
else if (data_checksum_version == 0)
@@ -1393,7 +1393,7 @@ can_use_pg_rewind(PGconn *conn, const char *data_directory, PQExpBufferData *rea
appendPQExpBuffer(reason, "; ");
appendPQExpBuffer(reason,
_("\"wal_log_hints\" is set to \"off\" and checksums are disabled"));
_("\"wal_log_hints\" is set to \"off\" and data checksums are disabled"));
can_use = false;
}