Skip to content

Commit

Permalink
Add debug log for batch completion
Browse files Browse the repository at this point in the history
  • Loading branch information
vansha committed Jan 25, 2024
1 parent a014e0a commit 2fcc48c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AzureBatchQueue/TimerBatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2fcc48c

Please sign in to comment.