Skip to content

Commit

Permalink
Less noisy logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nambrot committed Oct 28, 2023
1 parent 3501557 commit 287901d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
21 changes: 14 additions & 7 deletions rust/agents/validator/src/submit.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::num::NonZeroU64;
use std::str::FromStr;
use std::sync::Arc;
use std::time::{Duration, Instant};
use std::vec;

use eyre::{bail, Result};
use hyperlane_core::MerkleTreeHook;
use hyperlane_core::{MerkleTreeHook, H256};
use prometheus::IntGauge;
use tokio::time::sleep;
use tracing::{debug, info};
Expand Down Expand Up @@ -216,14 +217,20 @@ impl ValidatorSubmitter {
bail!("Incorrect tree root, something went wrong");
}

debug!(index = checkpoint.index, "Reached tree consistency");
if (checkpoint_queue.len() > 0) {
info!(
index = checkpoint.index,
queue_len = checkpoint_queue.len(),
"Reached tree consistency"
);

self.sign_and_submit_checkpoints(checkpoint_queue).await?;
self.sign_and_submit_checkpoints(checkpoint_queue).await?;

info!(
index = checkpoint.index,
"Signed all queued checkpoints until index"
);
info!(
index = checkpoint.index,
"Signed all queued checkpoints until index"
);
}

Ok(())
}
Expand Down
5 changes: 4 additions & 1 deletion rust/hyperlane-base/src/settings/trace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ impl TracingConfig {
.with_target("reqwest", Level::Info)
.with_target("tokio", Level::Debug)
.with_target("tokio_util", Level::Debug)
.with_target("ethers_providers", Level::Debug);
.with_target("ethers_providers", Level::Debug)
.with_target("h2", Level::Info)
.with_target("tower", Level::Info)
.with_target("tendermint", Level::Info);
}

if self.level < Level::Trace {
Expand Down

0 comments on commit 287901d

Please sign in to comment.