Skip to content

Commit

Permalink
Reduce log spam (#360)
Browse files Browse the repository at this point in the history
* Remove noisy log

* Reduce noisy log statement to trace

* Remove dead code

---------

Co-authored-by: Herman Obst Demaestri <70286869+HermanObst@users.noreply.github.com>
  • Loading branch information
notlesh and HermanObst committed Sep 19, 2024
1 parent 562ff4c commit 3a66fea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion crates/bin/prove_block/src/rpc_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn verify_storage_proof(contract_data: &ContractData, keys: &[Felt]) -> Vec<Felt
ProofVerificationError::KeyNotInProof { key, height, proof } => {
if let Some(TrieNode::Edge { child: _, path }) = proof.last() {
let modified_key = get_key_following_edge(key, height, path);
log::debug!(
log::trace!(
"Fetching modified key {} for key {}",
modified_key.to_hex_string(),
key.to_hex_string()
Expand Down
3 changes: 0 additions & 3 deletions crates/bin/prove_block/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ fn get_accessed_storage_keys(call_info: &CallInfo) -> HashMap<ContractAddress, H
.or_default()
.extend(call_info.accessed_storage_keys.iter().copied());

let storage_keys: Vec<_> = call_info.accessed_storage_keys.iter().map(|x| x.key().to_hex_string()).collect();
log::debug!("{}: {:?}", contract_address.to_string(), storage_keys);

for inner_call in &call_info.inner_calls {
let inner_call_storage_keys = get_accessed_storage_keys(inner_call);
for (contract_address, storage_keys) in inner_call_storage_keys {
Expand Down

0 comments on commit 3a66fea

Please sign in to comment.