mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-30 11:24:31 +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,7 +482,20 @@ impl<T: SlotClock> BeaconNodeFallback<T> {
|
|||||||
|
|
||||||
for (result, node) in results {
|
for (result, node) in results {
|
||||||
if let Err(e) = result {
|
if let Err(e) = result {
|
||||||
if *e != CandidateError::PreGenesis {
|
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!(
|
warn!(
|
||||||
error = ?e,
|
error = ?e,
|
||||||
endpoint = %node,
|
endpoint = %node,
|
||||||
@@ -491,6 +504,7 @@ impl<T: SlotClock> BeaconNodeFallback<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
drop(candidates);
|
drop(candidates);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user