Skip to content

Commit 87e9e47

Browse files
gortavoherjerusdp
authored andcommitted
🐛 fix(rule_processor): enhance logging for chunk processing
- change trace logs to info logs for chunk processing in rule_processor - improve visibility of chunk processing status and debugging
1 parent 2da4642 commit 87e9e47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rule_processor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ impl RuleProcessor for GmailClient {
523523

524524
async fn process_in_chunks(&self, message_ids: Vec<String>, action: EolAction) -> Result<()> {
525525
let (chunks, remainder) = message_ids.as_chunks::<1000>();
526-
log::trace!(
526+
log::info!(
527527
"Message list chopped into {} chunks with {} ids in the remainder",
528528
chunks.len(),
529529
remainder.len()
@@ -536,13 +536,13 @@ impl RuleProcessor for GmailClient {
536536

537537
if !chunks.is_empty() {
538538
for (i, chunk) in chunks.iter().enumerate() {
539-
log::trace!("Processing chunk {i}");
539+
log::info!("Processing chunk {i}");
540540
act(action, chunk).await?;
541541
}
542542
}
543543

544544
if !remainder.is_empty() {
545-
log::trace!("Processing remainder.");
545+
log::info!("Processing remainder.");
546546
act(action, remainder).await?;
547547
}
548548

0 commit comments

Comments
 (0)