even more logs

This commit is contained in:
Tanguy 2023-02-09 18:20:56 +01:00
parent 15a107a368
commit 9b4b68b9f9
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E

View File

@ -294,7 +294,7 @@ proc handleIWant*(g: GossipSub,
break break
elif g.hasSeen(mid): elif g.hasSeen(mid):
libp2p_gossipsub_mcache_hit.inc(1, labelValues = ["late"]) libp2p_gossipsub_mcache_hit.inc(1, labelValues = ["late"])
info "LATE IWANT", diff=(Moment.now() - g.firstSeen(mid)), peerType=peer.shortAgent info "LATE IWANT", diff=(Moment.now() - g.firstSeen(mid)), peerType=peer.shortAgent, mid
else: else:
libp2p_gossipsub_mcache_hit.inc(1, labelValues = ["unknown"]) libp2p_gossipsub_mcache_hit.inc(1, labelValues = ["unknown"])
return messages return messages
@ -589,7 +589,7 @@ proc getGossipPeers*(g: GossipSub): Table[PubSubPeer, ControlMessage] {.raises:
cacheWindowSize += midsSeq.len cacheWindowSize += midsSeq.len
trace "got messages to emit", size=midsSeq.len info "got messages to emit", size=midsSeq.len, topic, msgs=midsSeq
# not in spec # not in spec
# similar to rust: https://github.com/sigp/rust-libp2p/blob/f53d02bc873fef2bf52cd31e3d5ce366a41d8a8c/protocols/gossipsub/src/behaviour.rs#L2101 # similar to rust: https://github.com/sigp/rust-libp2p/blob/f53d02bc873fef2bf52cd31e3d5ce366a41d8a8c/protocols/gossipsub/src/behaviour.rs#L2101