From 39a1b1c4347739015d80b339381c2d876f2e73e1 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Mon, 21 Oct 2024 20:06:06 +0300 Subject: [PATCH] chore(opt-executor): de-spam logs Don't abuse the warn level. Don't emit verbose debug information on levels below DEBUG. --- .../execution/opt-executor/src/executor/execution.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/protocol-units/execution/opt-executor/src/executor/execution.rs b/protocol-units/execution/opt-executor/src/executor/execution.rs index d99f61323..e701bf530 100644 --- a/protocol-units/execution/opt-executor/src/executor/execution.rs +++ b/protocol-units/execution/opt-executor/src/executor/execution.rs @@ -39,7 +39,7 @@ impl Executor { }; for transaction in metadata_access_transactions.iter() { - warn!("Transaction sender: {:?}", transaction.sender()); + debug!("Transaction sender: {:?}", transaction.sender()); } // reconstruct the block @@ -64,10 +64,11 @@ impl Executor { }) .await??; - warn!("Block execution compute the following state: {:?}", state_compute); + debug!("block execution computed state: {:?}", state_compute); let version = state_compute.version(); - debug!("Block execution computed the following version: {:?}", version); + info!(%version, "block execution completed"); + let (epoch, round) = (block_metadata.epoch(), block_metadata.round()); let ledger_info_with_sigs = self.ledger_info_with_sigs(