From e6440c43c211d930d72d6189d4bca67fef7276b3 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 30 Jun 2022 09:57:07 +0200 Subject: [PATCH] lower log level of no-peers message (#735) the number of peers sent to is returned from the function - the caller can log this, if need be --- libp2p/protocols/pubsub/gossipsub.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 7975721..86f3df4 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -520,9 +520,9 @@ method publish*(g: GossipSub, if peers.len == 0: let topicPeers = g.gossipsub.getOrDefault(topic).toSeq() - notice "No peers for topic, skipping publish", peersOnTopic = topicPeers.len, - connectedPeers = topicPeers.filterIt(it.connected).len, - topic + debug "No peers for topic, skipping publish", peersOnTopic = topicPeers.len, + connectedPeers = topicPeers.filterIt(it.connected).len, + topic # skipping topic as our metrics finds that heavy libp2p_gossipsub_failed_publish.inc() return 0