diff --git a/waku/node/peer_manager/peer_manager.nim b/waku/node/peer_manager/peer_manager.nim index e49de6a59b..679041580f 100644 --- a/waku/node/peer_manager/peer_manager.nim +++ b/waku/node/peer_manager/peer_manager.nim @@ -380,7 +380,11 @@ proc onPeerMetadata(pm: PeerManager, peerId: PeerId) {.async.} = pm.peerStore.hasPeer(peerId, WakuRelayCodec) and 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 return