mirror of https://github.com/waku-org/nwaku.git
fix: more detailed logs to differentiate shards with peers (#2794)
This commit is contained in:
parent
31bd6d71c0
commit
55a87d21d6
|
@ -380,7 +380,11 @@ proc onPeerMetadata(pm: PeerManager, peerId: PeerId) {.async.} =
|
||||||
pm.peerStore.hasPeer(peerId, WakuRelayCodec) and
|
pm.peerStore.hasPeer(peerId, WakuRelayCodec) and
|
||||||
not metadata.shards.anyIt(pm.wakuMetadata.shards.contains(it))
|
not metadata.shards.anyIt(pm.wakuMetadata.shards.contains(it))
|
||||||
):
|
):
|
||||||
reason = "no shards in common"
|
let myShardsString = "[ " & toSeq(pm.wakuMetadata.shards).join(", ") & "]"
|
||||||
|
let otherShardsString = "[ " & metadata.shards.join(", ") & "]"
|
||||||
|
reason =
|
||||||
|
"no shards in common: my_shards = " & myShardsString & " others_shards = " &
|
||||||
|
otherShardsString
|
||||||
break guardClauses
|
break guardClauses
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue