Skip to content

Commit

Permalink
chore(torii): less noise in logs (#2358)
Browse files Browse the repository at this point in the history
* chore(torii): less noise in logs

* chore: debug logs
  • Loading branch information
Larkooo authored Aug 28, 2024
1 parent 02e42be commit cf1d044
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/torii/core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ impl<P: Provider + Sync> Engine<P> {
if from < latest_block_number {
// if `from` == 0, then the block may or may not be processed yet.
let from = if from == 0 { from } else { from + 1 };
info!(target: LOG_TARGET, from = %from, to = %latest_block_number, "Syncing range.");
debug!(target: LOG_TARGET, from = %from, to = %latest_block_number, "Syncing range.");
pending_block_tx = self.sync_range(from, latest_block_number, pending_block_tx).await?;
} else if self.config.index_pending {
debug!(target: LOG_TARGET, block_number = %latest_block_number + 1, pending_block_tx = ?pending_block_tx.map(|tx| format!("{:#x}", tx)), "Syncing pending.");
pending_block_tx = self.sync_pending(latest_block_number + 1, pending_block_tx).await?;
}

Expand Down Expand Up @@ -244,7 +245,7 @@ impl<P: Provider + Sync> Engine<P> {
events_pages.push(get_events(Some(token.clone())).await?);
}

info!(target: LOG_TARGET, "Total events pages fetched: {}", &events_pages.len());
debug!(target: LOG_TARGET, "Total events pages fetched: {}", &events_pages.len());
// Transactions & blocks to process
let mut last_block = 0_u64;
let mut blocks = BTreeMap::new();
Expand Down

0 comments on commit cf1d044

Please sign in to comment.