mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Silence Uninitialized warn log on start-up (#7411)
#7410 Silences the `Uninitialized` warn log during routine beacon node health check.
This commit is contained in:
@@ -482,12 +482,26 @@ impl<T: SlotClock> BeaconNodeFallback<T> {
|
||||
|
||||
for (result, node) in results {
|
||||
if let Err(e) = result {
|
||||
if *e != CandidateError::PreGenesis {
|
||||
warn!(
|
||||
error = ?e,
|
||||
endpoint = %node,
|
||||
"A connected beacon node errored during routine health check"
|
||||
);
|
||||
match e {
|
||||
// Avoid spamming warns before genesis.
|
||||
CandidateError::PreGenesis => {}
|
||||
// Uninitialized *should* only occur during start-up before the
|
||||
// slot clock has been initialized.
|
||||
// Seeing this log in any other circumstance would indicate a serious bug.
|
||||
CandidateError::Uninitialized => {
|
||||
debug!(
|
||||
error = ?e,
|
||||
endpoint = %node,
|
||||
"A connected beacon node is uninitialized"
|
||||
);
|
||||
}
|
||||
_ => {
|
||||
warn!(
|
||||
error = ?e,
|
||||
endpoint = %node,
|
||||
"A connected beacon node errored during routine health check"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user