mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36: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
|
else
|
||||||
{
|
{
|
||||||
new_primary_ok = false;
|
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);
|
close_connection(&upstream_conn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3876,7 +3878,9 @@ witness_follow_new_primary(int new_primary_id)
|
|||||||
break;
|
break;
|
||||||
case RECTYPE_STANDBY:
|
case RECTYPE_STANDBY:
|
||||||
new_primary_ok = false;
|
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;
|
break;
|
||||||
case RECTYPE_UNKNOWN:
|
case RECTYPE_UNKNOWN:
|
||||||
new_primary_ok = false;
|
new_primary_ok = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user