From 2fcc48cce6c746a92fadb71913bb8ce9f7ace46f Mon Sep 17 00:00:00 2001 From: Ivan Korneliuk Date: Thu, 25 Jan 2024 17:52:58 +0200 Subject: [PATCH] Add debug log for batch completion --- AzureBatchQueue/TimerBatch.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AzureBatchQueue/TimerBatch.cs b/AzureBatchQueue/TimerBatch.cs index 2058ab7..df00614 100644 --- a/AzureBatchQueue/TimerBatch.cs +++ b/AzureBatchQueue/TimerBatch.cs @@ -101,7 +101,13 @@ async Task Update() items.Items().Length); } - async Task Delete() => await batchQueue.DeleteMessage(msg.MessageId); + async Task Delete() + { + await batchQueue.DeleteMessage(msg.MessageId); + + logger.LogDebug("Message {msgId} was fully processed with {totalCount} items", msg.MessageId, items.Items().Length); + } + async Task Quarantine() { var remaining = Remaining();