mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Fix debugging output
This commit is contained in:
@@ -38,7 +38,7 @@ establish_db_connection(const char *conninfo, const bool exit_on_error)
|
|||||||
strcpy(connection_string, conninfo);
|
strcpy(connection_string, conninfo);
|
||||||
strcat(connection_string, " fallback_application_name='repmgr'");
|
strcat(connection_string, " fallback_application_name='repmgr'");
|
||||||
|
|
||||||
log_debug(_("Connecting to: '%s'"), connection_string);
|
log_debug(_("Connecting to: '%s'\n"), connection_string);
|
||||||
|
|
||||||
conn = PQconnectdb(connection_string);
|
conn = PQconnectdb(connection_string);
|
||||||
|
|
||||||
|
|||||||
@@ -488,10 +488,9 @@ witness_monitor(void)
|
|||||||
* we cannot reconnect, return false.
|
* we cannot reconnect, return false.
|
||||||
*/
|
*/
|
||||||
check_connection(primary_conn, "master"); /* this take up to
|
check_connection(primary_conn, "master"); /* this take up to
|
||||||
* local_options.reconnect_atte
|
* local_options.reconnect_attempts
|
||||||
* mpts *
|
* local_options.reconnect_intvl seconds
|
||||||
* local_options.reconnect_intv
|
*/
|
||||||
* l seconds */
|
|
||||||
|
|
||||||
if (PQstatus(primary_conn) != CONNECTION_OK)
|
if (PQstatus(primary_conn) != CONNECTION_OK)
|
||||||
{
|
{
|
||||||
@@ -620,7 +619,7 @@ standby_monitor(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
log_err(
|
log_err(
|
||||||
_("We haven't found a new master, waiting %s seconds before retry...\n"),
|
_("We haven't found a new master, waiting %i seconds before retry...\n"),
|
||||||
local_options.retry_promote_interval_secs
|
local_options.retry_promote_interval_secs
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user