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
if (reconnectingPeer && currentPrimary->healthCheck.status == HealthStatus::OK) {
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) {
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
if (currentPrimary && currentPrimary->healthCheck.status == HealthStatus::OK) {
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());
}
}
}