Skip to content

Commit e85882e

Browse files
authored
Downgrade log levels when skipping proposals or certificates from valdators. (#4386)
## Motivation Proposals or certificates we learn about when syncing from validators aren't expected to always still be relevant for us, or even to successfully execute (for the proposals). ## Proposal Downgrade the log level to debug when logging such failures. ## Test Plan CI ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - Closes #3001. - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 6a1d64b commit e85882e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linera-core/src/client/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ impl<Env: Environment> Client<Env> {
10381038
LockingBlock::Regular(cert) => {
10391039
let hash = cert.hash();
10401040
if let Err(err) = self.try_process_locking_block_from(remote_node, cert).await {
1041-
warn!(
1041+
debug!(
10421042
"Skipping certificate {hash} from validator {}: {err}",
10431043
remote_node.public_key
10441044
);
@@ -1106,7 +1106,7 @@ impl<Env: Environment> Client<Env> {
11061106
}
11071107

11081108
let public_key = &remote_node.public_key;
1109-
warn!("Skipping proposal from {owner} and validator {public_key}: {err}");
1109+
debug!("Skipping proposal from {owner} and validator {public_key}: {err}");
11101110
}
11111111
}
11121112
Ok(())

0 commit comments

Comments
 (0)