mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 00:43:06 +00:00
chore: improving logging under debugDiscv5 flag (#2899)
This commit is contained in:
parent
d60ff3e0e6
commit
53893c1b28
@ -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…
x
Reference in New Issue
Block a user