Skip to content

Commit

Permalink
chore(opt-executor): de-spam logs
Browse files Browse the repository at this point in the history
Don't abuse the warn level.
Don't emit verbose debug information on levels below DEBUG.
  • Loading branch information
mzabaluev committed Oct 22, 2024
1 parent 054617e commit 9c936df
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions protocol-units/execution/opt-executor/src/executor/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use aptos_types::{
validator_verifier::{ValidatorConsensusInfo, ValidatorVerifier},
};
use movement_types::block::{BlockCommitment, Commitment, Id};
use tracing::{info, warn};
use tracing::{debug, info};

impl Executor {
/// Executes a block and commits it to the storage layer.
Expand All @@ -40,7 +40,7 @@ impl Executor {
};

for transaction in metadata_access_transactions.iter() {
warn!("Transaction sender: {:?}", transaction.sender());
debug!("Transaction sender: {:?}", transaction.sender());
}

// reconstruct the block
Expand All @@ -65,9 +65,11 @@ impl Executor {
})
.await??;

info!("Block execution compute the following state: {:?}", state_compute);
debug!("block execution computed state: {:?}", state_compute);

let version = state_compute.version();
info!("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(
Expand Down

0 comments on commit 9c936df

Please sign in to comment.