mirror of
https://github.com/status-im/go-waku.git
synced 2025-02-26 12:07:34 +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++
|
||||
}
|
||||
} else {
|
||||
pm.logger.Warn("failed to fetch peer score ", zap.Error(err), logging.HostID("peer", p))
|
||||
//For now considering peer as healthy if we can't fetch score.
|
||||
healthyPeerCount++
|
||||
if errors.Is(err, peerstore.ErrNotFound) {
|
||||
// For now considering peer as healthy if we can't fetch score.
|
||||
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