From abab8f4b4964711de4fd4021195a8cac93ac498a Mon Sep 17 00:00:00 2001 From: yaroslavtykhonchuk Date: Tue, 30 Jan 2024 12:06:03 +0200 Subject: [PATCH] Fix update log warning --- AzureBatchQueue/TimerBatch.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AzureBatchQueue/TimerBatch.cs b/AzureBatchQueue/TimerBatch.cs index df00614..7f64d1c 100644 --- a/AzureBatchQueue/TimerBatch.cs +++ b/AzureBatchQueue/TimerBatch.cs @@ -94,10 +94,10 @@ async Task Update() { var remaining = Remaining(); await batchQueue.UpdateMessage(msg.MessageId, remaining); - logger.LogWarning("Message {msgId} was not fully processed within a timeout ({FlushPeriod}). {remainingCount} items left not completed from {totalCount} total", - FlushPeriod, + logger.LogWarning("Message {msgId} was not fully processed within a timeout ({FlushPeriod} sec). {remainingCount} items left not completed from {totalCount} total", msg.MessageId, - remaining, + FlushPeriod.Seconds, + remaining.Length, items.Items().Length); }