mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-27 03:50:38 +00:00
even more logs
This commit is contained in:
parent
15a107a368
commit
9b4b68b9f9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user