Skip to content

Commit

Permalink
chore: remove debug logs that may flood logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaprem committed May 28, 2024
1 parent 897928a commit defe020
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions waku/v2/peermanager/peer_selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func (pm *PeerManager) SelectRandom(criteria PeerSelectionCriteria) (peer.IDSlic
peerIDs = make(PeerSet)
}
// if not found in serviceSlots or proto == WakuRelayIDv200
pm.logger.Debug("looking for peers in peerStore", zap.String("proto", string(criteria.Proto)))
filteredPeers, err := pm.FilterPeersByProto(criteria.SpecificPeers, criteria.ExcludePeers, criteria.Proto)
if err != nil {
return nil, err
Expand Down Expand Up @@ -253,6 +252,5 @@ func (pm *PeerManager) FilterPeersByProto(specificPeers peer.IDSlice, excludePee
peers = append(peers, peer)
}
}
pm.logger.Debug("peers selected", zap.Int("peerCnt", len(peers)))
return peers, nil
}

0 comments on commit defe020

Please sign in to comment.