mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-14 17:04:53 +00:00
chore: improving logging under debugDiscv5 flag (#2899)
This commit is contained in:
parent
f54ba10bc7
commit
8578fb0c3e
@ -665,8 +665,11 @@ proc connectToNodes*(
|
|||||||
when defined(debugDiscv5):
|
when defined(debugDiscv5):
|
||||||
let peerIds = connectedPeers.mapIt(it.peerId)
|
let peerIds = connectedPeers.mapIt(it.peerId)
|
||||||
let origin = connectedPeers.mapIt(it.origin)
|
let origin = connectedPeers.mapIt(it.origin)
|
||||||
notice "established connections with found peers",
|
if peerIds.len > 0:
|
||||||
peerIds = peerIds, origin = origin
|
notice "established connections with found peers",
|
||||||
|
peerIds = peerIds.mapIt(shortLog(it)), origin = origin
|
||||||
|
else:
|
||||||
|
notice "could not connect to new peers", attempted = nodes.len
|
||||||
|
|
||||||
info "Finished dialing multiple peers",
|
info "Finished dialing multiple peers",
|
||||||
successfulConns = connectedPeers.len, attempted = nodes.len
|
successfulConns = connectedPeers.len, attempted = nodes.len
|
||||||
|
Loading…
x
Reference in New Issue
Block a user