diff --git a/src/handler.js b/src/handler.js index f9e7326d..a40b3af8 100644 --- a/src/handler.js +++ b/src/handler.js @@ -183,6 +183,7 @@ async function batchResponse ({ blocks, context, logger }) { } try { + logger.info({ key: context.canceled }, 'batch response') let message = new Message() for (let i = 0; i < blocks.length; i++) { const block = blocks[i] @@ -203,6 +204,7 @@ async function batchResponse ({ blocks, context, logger }) { telemetry.increaseLabelCount('bitswap-block-success-cancel', [block.type]) telemetry.increaseLabelCount('bitswap-cancel-size', [block.type], size) + logger.info({ key: block.key }, 'delete') context.canceled.delete(block.key) } }