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 21, 2024
1 parent b62509a commit 39a1b1c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit 39a1b1c

Please sign in to comment.