mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore(tree, engine, prune, stages, storage): improve logs (#4790)
This commit is contained in:
@ -4,7 +4,7 @@ use crate::{bundle_state::BundleStateWithReceipts, StateProvider};
|
||||
use reth_interfaces::executor::BlockExecutionError;
|
||||
use reth_primitives::{Address, Block, BlockNumber, ChainSpec, PruneModes, U256};
|
||||
use std::time::Duration;
|
||||
use tracing::info;
|
||||
use tracing::debug;
|
||||
|
||||
/// Executor factory that would create the EVM with particular state provider.
|
||||
///
|
||||
@ -85,13 +85,15 @@ pub struct BlockExecutorStats {
|
||||
impl BlockExecutorStats {
|
||||
/// Log duration to info level log.
|
||||
pub fn log_info(&self) {
|
||||
info!(target: "evm",
|
||||
debug!(
|
||||
target: "evm",
|
||||
evm_transact = ?self.execution_duration,
|
||||
apply_state = ?self.apply_state_duration,
|
||||
apply_post_state = ?self.apply_post_execution_state_changes_duration,
|
||||
merge_transitions = ?self.merge_transitions_duration,
|
||||
receipt_root = ?self.receipt_root_duration,
|
||||
sender_recovery = ?self.sender_recovery_duration,
|
||||
"Execution time");
|
||||
"Execution time"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user