Skip to content

Commit

Permalink
change log blocks interval
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Oct 21, 2024
1 parent 07b7602 commit abd1075
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/stages/stages/src/stages/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ pub(crate) fn update_execution_total(block: u64, inc: u128) {
let new = *current + inc as u64;
*current = new;

if block % 100 == 0 {
info!(target: "bt_pipeline_execution", execution = ?new, block = ?block, "Total execution time");
if block % 1000 == 0 {
info!(target: "bt_pipeline_execution", block = ?block, execution = ?new, "Total execution time");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ impl<'a, TX> PlainCacheWriter<'a, TX> {
{
if last_block > 0 {
info!(
"P_ACCOUNT_CACHE_SZ {}, block number {}",
"block number {}, P_ACCOUNT_CACHE_SZ {}",
last_block,
super::plain_state::PLAIN_ACCOUNTS.len(),
last_block
);
info!(
"P_STORAGE_CACHE_SZ {}, block number {}",
"block number {}, P_STORAGE_CACHE_SZ {}",
last_block,
super::plain_state::PLAIN_STORAGES.len(),
last_block
);
}
// Update account cache
Expand Down

0 comments on commit abd1075

Please sign in to comment.