From 532b83a52ba8e33de0b3b94e9b0cec45bfae966b Mon Sep 17 00:00:00 2001 From: benbierens Date: Thu, 5 Dec 2024 15:17:30 +0100 Subject: [PATCH] consistent logging of addresses --- codex/blockexchange/engine/engine.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codex/blockexchange/engine/engine.nim b/codex/blockexchange/engine/engine.nim index 63fb2dca..718828f7 100644 --- a/codex/blockexchange/engine/engine.nim +++ b/codex/blockexchange/engine/engine.nim @@ -240,7 +240,7 @@ proc blockPresenceHandler*( ) if wantCids.len > 0: - trace "Peer has blocks in our wantList", peer, wantCount = wantCids.len + trace "Peer has blocks in our wantList", peer, wants = wantCids await b.sendWantBlock(wantCids, peerCtx) # if none of the connected peers report our wants in their have list, @@ -336,7 +336,7 @@ proc blocksDeliveryHandler*( b: BlockExcEngine, peer: PeerId, blocksDelivery: seq[BlockDelivery]) {.async.} = - trace "Received blocks from peer", peer, blocks = (blocksDelivery.mapIt($it.address)).join(",") + trace "Received blocks from peer", peer, blocks = (blocksDelivery.mapIt(it.address)) var validatedBlocksDelivery: seq[BlockDelivery] for bd in blocksDelivery: @@ -557,7 +557,7 @@ proc taskHandler*(b: BlockExcEngine, task: BlockExcPeerCtx) {.gcsafe, async.} = updateInFlight(failedAddresses, false) if blocksDelivery.len > 0: - trace "Sending blocks to peer", peer = task.id, blocks = (blocksDelivery.mapIt($it.address)).join(",") + trace "Sending blocks to peer", peer = task.id, blocks = (blocksDelivery.mapIt(it.address)) await b.network.request.sendBlocksDelivery( task.id, blocksDelivery