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,7 +520,7 @@ method publish*(g: GossipSub,
|
||||||
|
|
||||||
if peers.len == 0:
|
if peers.len == 0:
|
||||||
let topicPeers = g.gossipsub.getOrDefault(topic).toSeq()
|
let topicPeers = g.gossipsub.getOrDefault(topic).toSeq()
|
||||||
notice "No peers for topic, skipping publish", peersOnTopic = topicPeers.len,
|
debug "No peers for topic, skipping publish", peersOnTopic = topicPeers.len,
|
||||||
connectedPeers = topicPeers.filterIt(it.connected).len,
|
connectedPeers = topicPeers.filterIt(it.connected).len,
|
||||||
topic
|
topic
|
||||||
# skipping topic as our metrics finds that heavy
|
# skipping topic as our metrics finds that heavy
|
||||||
|
|
Loading…
Reference in New Issue