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
This commit is contained in:
parent
597abddba7
commit
e6440c43c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue