From 52628d1a2e1675ed4e36a52a3f428e2d436a64ab Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Thu, 17 Dec 2020 17:21:09 +0900 Subject: [PATCH] avoid using debug logging in gossip, just because --- libp2p/protocols/pubsub/gossipsub.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 416476db5..f806782e9 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -660,7 +660,7 @@ func `/`(a, b: Duration): float64 = proc colocationFactor(g: GossipSub, peer: PubSubPeer): float64 = if peer.connections.len == 0: - debug "colocationFactor, no connections", peer + trace "colocationFactor, no connections", peer 0.0 else: let @@ -668,7 +668,7 @@ proc colocationFactor(g: GossipSub, peer: PubSubPeer): float64 = ipPeers = g.peersInIP.getOrDefault(address) len = ipPeers.len.float64 if len > g.parameters.ipColocationFactorThreshold: - debug "colocationFactor over threshold", peer, address, len + trace "colocationFactor over threshold", peer, address, len let over = len - g.parameters.ipColocationFactorThreshold over * over else: