chore: change log levels (#1165)

This commit is contained in:
Prem Chaitanya Prathi 2024-07-17 15:32:32 +05:30 committed by GitHub
parent dacff8a6ae
commit 8afeb529df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ func (pm *PeerManager) discoverPeersByPubsubTopics(pubsubTopics []string, proto
for _, shardInfo := range shardsInfo { for _, shardInfo := range shardsInfo {
err = pm.DiscoverAndConnectToPeers(ctx, shardInfo.ClusterID, shardInfo.ShardIDs[0], proto, maxCount) err = pm.DiscoverAndConnectToPeers(ctx, shardInfo.ClusterID, shardInfo.ShardIDs[0], proto, maxCount)
if err != nil { if err != nil {
pm.logger.Error("failed to discover and connect to peers", zap.Error(err)) pm.logger.Warn("failed to discover and connect to peers", zap.Error(err))
} }
} }
} else { } else {

View File

@ -98,7 +98,7 @@ func (wakuPX *WakuPeerExchange) onRequest() func(network.Stream) {
if wakuPX.limiter != nil && !wakuPX.limiter.Allow() { if wakuPX.limiter != nil && !wakuPX.limiter.Allow() {
wakuPX.metrics.RecordError(rateLimitFailure) wakuPX.metrics.RecordError(rateLimitFailure)
wakuPX.log.Error("exceeds the rate limit") wakuPX.log.Info("exceeds the rate limit")
// TODO: peer exchange protocol should contain an err field // TODO: peer exchange protocol should contain an err field
if err := stream.Reset(); err != nil { if err := stream.Reset(); err != nil {
wakuPX.log.Error("resetting connection", zap.Error(err)) wakuPX.log.Error("resetting connection", zap.Error(err))