mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
repmgrd: clarify log messages
Display the identity of the node question in the meassges fixed in commit 8a27c89; this makes it easier to diagnose log output.
This commit is contained in:
@@ -3683,7 +3683,9 @@ follow_new_primary(int new_primary_id)
|
||||
else
|
||||
{
|
||||
new_primary_ok = false;
|
||||
log_warning(_("new primary is in recovery"));
|
||||
log_warning(_("new primary \"%s\" (node ID: %i) is in recovery"),
|
||||
new_primary.node_name,
|
||||
new_primary_id);
|
||||
close_connection(&upstream_conn);
|
||||
}
|
||||
}
|
||||
@@ -3876,7 +3878,9 @@ witness_follow_new_primary(int new_primary_id)
|
||||
break;
|
||||
case RECTYPE_STANDBY:
|
||||
new_primary_ok = false;
|
||||
log_warning(_("new primary is in recovery"));
|
||||
log_warning(_("new primary \"%s\" (node ID: %i) is in recovery"),
|
||||
new_primary.node_name,
|
||||
new_primary_id);
|
||||
break;
|
||||
case RECTYPE_UNKNOWN:
|
||||
new_primary_ok = false;
|
||||
|
||||
Reference in New Issue
Block a user