From 646557597d1e98df478013b2b82881e55d306c30 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com> Date: Mon, 8 Feb 2021 10:11:41 +0900 Subject: [PATCH] lower some gossipsub logging to debug level --- libp2p/protocols/pubsub/gossipsub/behavior.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/protocols/pubsub/gossipsub/behavior.nim b/libp2p/protocols/pubsub/gossipsub/behavior.nim index 9f8ed09..37ca392 100644 --- a/libp2p/protocols/pubsub/gossipsub/behavior.nim +++ b/libp2p/protocols/pubsub/gossipsub/behavior.nim @@ -97,7 +97,7 @@ proc handleGraft*(g: GossipSub, # It is an error to GRAFT on a explicit peer if peer.peerId in g.parameters.directPeers: # receiving a graft from a direct peer should yield a more prominent warning (protocol violation) - warn "attempt to graft an explicit peer", peer=peer.peerId, + debug "attempt to graft an explicit peer", peer=peer.peerId, topic # and such an attempt should be logged and rejected with a PRUNE result.add(ControlPrune( @@ -117,7 +117,7 @@ proc handleGraft*(g: GossipSub, if g.backingOff .getOrDefault(topic) .getOrDefault(peer.peerId) > Moment.now(): - warn "attempt to graft a backingOff peer", peer=peer.peerId, + debug "attempt to graft a backingOff peer", peer=peer.peerId, topic # and such an attempt should be logged and rejected with a PRUNE result.add(ControlPrune(