mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-07 16:33:08 +00:00
chore: reduce peer score not found log noise (#1121)
This commit is contained in:
parent
0e223591ed
commit
d2d2f5672e
@ -132,9 +132,13 @@ func (pm *PeerManager) checkAndUpdateTopicHealth(topic *NodeTopicDetails) int {
|
|||||||
healthyPeerCount++
|
healthyPeerCount++
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pm.logger.Warn("failed to fetch peer score ", zap.Error(err), logging.HostID("peer", p))
|
if errors.Is(err, peerstore.ErrNotFound) {
|
||||||
//For now considering peer as healthy if we can't fetch score.
|
// For now considering peer as healthy if we can't fetch score.
|
||||||
healthyPeerCount++
|
healthyPeerCount++
|
||||||
|
pm.logger.Debug("peer score is not available yet", logging.HostID("peer", p))
|
||||||
|
} else {
|
||||||
|
pm.logger.Warn("failed to fetch peer score ", zap.Error(err), logging.HostID("peer", p))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user