fix some logging incorrectly referenced
This commit is contained in:
parent
ea8bc2d89f
commit
48b2b1cc4d
@ -235,7 +235,7 @@ void PeerManager::handlePrimaryConflict(const std::string& reconnectingPeerId) {
|
|||||||
// Demote the current primary
|
// Demote the current primary
|
||||||
if (reconnectingPeer && currentPrimary->healthCheck.status == HealthStatus::OK) {
|
if (reconnectingPeer && currentPrimary->healthCheck.status == HealthStatus::OK) {
|
||||||
setPrimary(reconnectingPeerId);
|
setPrimary(reconnectingPeerId);
|
||||||
LogWrite(PEERING__INFO, 0, "Peering", "%s: Peer %s forced to primary", __FUNCTION__, reconnectingPeer->id);
|
LogWrite(PEERING__INFO, 0, "Peering", "%s: Peer %s forced to primary", __FUNCTION__, reconnectingPeer->id.c_str());
|
||||||
if (currentPrimary) {
|
if (currentPrimary) {
|
||||||
LogWrite(PEERING__INFO, 0, "Peering", "%s: Demoted to secondary", __FUNCTION__);
|
LogWrite(PEERING__INFO, 0, "Peering", "%s: Demoted to secondary", __FUNCTION__);
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ void PeerManager::handlePrimaryConflict(const std::string& reconnectingPeerId) {
|
|||||||
// Demote the reconnecting peer
|
// Demote the reconnecting peer
|
||||||
if (currentPrimary && currentPrimary->healthCheck.status == HealthStatus::OK) {
|
if (currentPrimary && currentPrimary->healthCheck.status == HealthStatus::OK) {
|
||||||
setPrimary(currentPrimary->id);
|
setPrimary(currentPrimary->id);
|
||||||
LogWrite(PEERING__INFO, 0, "Peering", "%s: Peer %s forced to primary", __FUNCTION__, currentPrimary->id);
|
LogWrite(PEERING__INFO, 0, "Peering", "%s: Peer %s forced to primary", __FUNCTION__, currentPrimary->id.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user