Skip to content

Commit

Permalink
chore(derive): Remove noisy batch logs (#329)
Browse files Browse the repository at this point in the history
## Overview

Removes the noisy batch logs in `info!` / `warn!` log levels within the
`BatchQueue`. These cause a significant slowdown due to having to
`Debug` format the entire batch, which can be tens of megabytes large
when decompressed.
  • Loading branch information
clabby authored Jun 27, 2024
1 parent 72dc3fc commit d3f1493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/derive/src/stages/batch_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ where
remaining.push(batch.clone());
}
BatchValidity::Drop => {
warn!(target: "batch-queue", "Dropping batch: {:?}, parent: {}", batch.batch, parent.block_info);
warn!(target: "batch-queue", "Dropping batch with parent: {}", parent.block_info);
continue;
}
BatchValidity::Accept => {
Expand All @@ -171,7 +171,7 @@ where
self.batches = remaining;

if let Some(nb) = next_batch {
info!(target: "batch-queue", "Next batch found: {:?}", nb.batch);
info!(target: "batch-queue", "Next batch found for timestamp {}", nb.batch.timestamp());
return Ok(nb.batch);
}

Expand Down

0 comments on commit d3f1493

Please sign in to comment.