mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
"standby switchover": improve logging
Also no need to disconnect/reconnect from/to local node while it promotes.
This commit is contained in:
@@ -1424,12 +1424,18 @@ do_node_service(void)
|
||||
return;
|
||||
}
|
||||
|
||||
log_notice(_("executing server command \"%s\""), command);
|
||||
/*
|
||||
* log level is "DETAIL" here as this command is intended to be executed
|
||||
* by another repmgr process (e.g. during standby switchover); that repmgr
|
||||
* should emit a "NOTICE" about the intent of the command.
|
||||
*/
|
||||
log_detail(_("executing server command \"%s\""), command);
|
||||
|
||||
initPQExpBuffer(&output);
|
||||
|
||||
if (local_command(command, &output) == false)
|
||||
{
|
||||
termPQExpBuffer(&output);
|
||||
exit(ERR_LOCAL_COMMAND);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user