Skip to content

Commit

Permalink
chore: improving logging under debugDiscv5 flag (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer authored Jul 15, 2024
1 parent f54ba10 commit 8578fb0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions waku/node/peer_manager/peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8578fb0

Please sign in to comment.