Skip to content

Commit 5b3242c

Browse files
authored
Make connection and process_inbox logs less noisy. (linera-io#4672) (linera-io#4717)
Backport of linera-io#4672. ## Motivation Some `INFO` log messages are rather noisy if there are lots of chains in a wallet. ## Proposal Make them `DEBUG`-level instead. ## Test Plan (Only logging changes.) ## Release Plan - These changes should be released in a new SDK. (Not urgent.) ## Links - PR to main: linera-io#4672 - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent e752606 commit 5b3242c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

linera-client/src/chain_listener.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,14 @@ impl<C: ClientContext> ChainListener<C> {
464464
debug!(%chain_id, "Cannot find key for chain");
465465
}
466466
Err(error) => warn!(%error, "Failed to process inbox."),
467-
Ok((certs, None)) => info!("Done processing inbox. {} blocks created.", certs.len()),
467+
Ok((certs, None)) => info!(
468+
"Done processing inbox of chain. {} blocks created on chain {chain_id}.",
469+
certs.len()
470+
),
468471
Ok((certs, Some(new_timeout))) => {
469472
info!(
470-
"{} blocks created. Will try processing the inbox later based \
471-
on the given round timeout: {new_timeout:?}",
473+
"{} blocks created on chain {chain_id}. Will try processing the inbox later \
474+
based on the round timeout: {new_timeout:?}",
472475
certs.len(),
473476
);
474477
listening_client.timeout = new_timeout.timestamp;

linera-core/src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,7 @@ impl<Env: Environment> ChainClient<Env> {
38443844
if let Err(error) = &result {
38453845
warn!(?error, "Could not connect to validator {public_key}");
38463846
} else {
3847-
info!("Connected to validator {public_key}");
3847+
debug!("Connected to validator {public_key}");
38483848
}
38493849
result.ok()
38503850
})

0 commit comments

Comments
 (0)