1
0

fix some logging incorrectly referenced

This commit is contained in:
Emagi 2024-12-03 08:29:22 -05:00
parent ea8bc2d89f
commit 48b2b1cc4d

View File

@ -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());
} }
} }
} }