diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 17fd3ccb9..b609c9a85 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -520,7 +520,10 @@ method publish*(g: GossipSub, g.lastFanoutPubSub[topic] = Moment.fromNow(g.parameters.fanoutTTL) if peers.len == 0: - notice "No peers for topic, skipping publish" + let topicPeers = g.gossipsub.getOrDefault(topic).toSeq() + notice "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