From 87e9e473950dd9e50a41c4f26333437bec816ff7 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 30 Oct 2025 13:38:34 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(rule=5Fprocessor):=20enhance?= =?UTF-8?q?=20logging=20for=20chunk=20processing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change trace logs to info logs for chunk processing in rule_processor - improve visibility of chunk processing status and debugging --- src/rule_processor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rule_processor.rs b/src/rule_processor.rs index b7f0575..a81464d 100644 --- a/src/rule_processor.rs +++ b/src/rule_processor.rs @@ -523,7 +523,7 @@ impl RuleProcessor for GmailClient { async fn process_in_chunks(&self, message_ids: Vec, action: EolAction) -> Result<()> { let (chunks, remainder) = message_ids.as_chunks::<1000>(); - log::trace!( + log::info!( "Message list chopped into {} chunks with {} ids in the remainder", chunks.len(), remainder.len() @@ -536,13 +536,13 @@ impl RuleProcessor for GmailClient { if !chunks.is_empty() { for (i, chunk) in chunks.iter().enumerate() { - log::trace!("Processing chunk {i}"); + log::info!("Processing chunk {i}"); act(action, chunk).await?; } } if !remainder.is_empty() { - log::trace!("Processing remainder."); + log::info!("Processing remainder."); act(action, remainder).await?; }