RPC: Demote missing block error to warning (#13685)

It frightens the tourists

(cherry picked from commit f2a1a0ac5c)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-11-19 07:05:32 +00:00
committed by GitHub
parent f56f3d81b5
commit 15f6b6ccd6

View File

@ -171,7 +171,7 @@ impl JsonRpcRequestProcessor {
}; };
r_bank_forks.get(slot).cloned().unwrap_or_else(|| { r_bank_forks.get(slot).cloned().unwrap_or_else(|| {
// We log an error instead of returning an error, because all known error cases // We log a warning instead of returning an error, because all known error cases
// are due to known bugs that should be fixed instead. // are due to known bugs that should be fixed instead.
// //
// The slot may not be found as a result of a known bug in snapshot creation, where // The slot may not be found as a result of a known bug in snapshot creation, where
@ -182,7 +182,7 @@ impl JsonRpcRequestProcessor {
// a slot. // a slot.
// //
// For more information, see https://github.com/solana-labs/solana/issues/11078 // For more information, see https://github.com/solana-labs/solana/issues/11078
error!( warn!(
"Bank with {:?} not found at slot: {:?}", "Bank with {:?} not found at slot: {:?}",
commitment_level, slot commitment_level, slot
); );