repmgr standby promote: suppress master database connection error message

Otherwise the first line of output is an ERROR, which is confusing,
even though it's expected.
This commit is contained in:
Ian Barwick
2017-06-21 13:21:44 +09:00
parent 0c531e07e7
commit 6cdf73b4cb
3 changed files with 29 additions and 4 deletions

View File

@@ -1084,7 +1084,7 @@ do_standby_promote(void)
/* we also need to check if there isn't any master already */
current_master_conn = get_master_connection(conn, &existing_master_id, NULL);
current_master_conn = get_master_connection_quiet(conn, &existing_master_id, NULL);
if (PQstatus(current_master_conn) == CONNECTION_OK)
{