From f2a1a0ac5cc0d3685a8180f2aa37f1075c564410 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Wed, 18 Nov 2020 20:36:10 -0700 Subject: [PATCH] RPC: Demote missing block error to warning It frightens the tourists --- core/src/rpc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/rpc.rs b/core/src/rpc.rs index e4e668ebbd..8e35ef4329 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -171,7 +171,7 @@ impl JsonRpcRequestProcessor { }; 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. // // 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. // // For more information, see https://github.com/solana-labs/solana/issues/11078 - error!( + warn!( "Bank with {:?} not found at slot: {:?}", commitment_level, slot );