Add logging when RpcHealthStatus::Unknown (#18099)

This commit is contained in:
Tyera Eulberg
2021-06-21 11:40:15 -06:00
committed by GitHub
parent 16c42a7b30
commit 7759210ff3

View File

@ -98,7 +98,15 @@ impl RpcHealth {
RpcHealthStatus::Behind { num_slots } RpcHealthStatus::Behind { num_slots }
} }
} }
_ => RpcHealthStatus::Unknown, (latest_account_hash_slot, latest_trusted_validator_account_hash_slot) => {
if latest_account_hash_slot.is_none() {
warn!("health check: latest_account_hash_slot not available");
}
if latest_trusted_validator_account_hash_slot.is_none() {
warn!("health check: latest_trusted_validator_account_hash_slot not available");
}
RpcHealthStatus::Unknown
}
} }
} else { } else {
// No trusted validator point of reference available, so this validator is healthy // No trusted validator point of reference available, so this validator is healthy