Skip to content

Commit

Permalink
Less noisy logs (#2863)
Browse files Browse the repository at this point in the history
### Description

Hides some cosmos logs from debug level

### Drive-by changes

Only shows submission logs if there is queue in the checkpoint submitter
  • Loading branch information
nambrot authored Oct 28, 2023
1 parent 3501557 commit f05c50c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
18 changes: 12 additions & 6 deletions rust/agents/validator/src/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,20 @@ impl ValidatorSubmitter {
bail!("Incorrect tree root, something went wrong");
}

debug!(index = checkpoint.index, "Reached tree consistency");
if !checkpoint_queue.is_empty() {
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
3 changes: 3 additions & 0 deletions rust/hyperlane-base/src/settings/trace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ impl TracingConfig {
.with_target("hyper", Level::Info)
.with_target("rusoto_core", Level::Info)
.with_target("reqwest", Level::Info)
.with_target("h2", Level::Info)
.with_target("tower", Level::Info)
.with_target("tendermint", Level::Info)
.with_target("tokio", Level::Debug)
.with_target("tokio_util", Level::Debug)
.with_target("ethers_providers", Level::Debug);
Expand Down

0 comments on commit f05c50c

Please sign in to comment.