mirror of https://github.com/waku-org/nwaku.git
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):
|
||||
let peerIds = connectedPeers.mapIt(it.peerId)
|
||||
let origin = connectedPeers.mapIt(it.origin)
|
||||
notice "established connections with found peers",
|
||||
peerIds = peerIds, origin = origin
|
||||
if peerIds.len > 0:
|
||||
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",
|
||||
successfulConns = connectedPeers.len, attempted = nodes.len
|
||||
|
|
Loading…
Reference in New Issue