Skip to content

Commit

Permalink
fix(block-fetcher): remove error messages pertaining to block missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesmallon1 committed Jan 5, 2024
1 parent 6d14b01 commit 49bd4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/networking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ impl BlockFetcher for SolanaClient {
},
)
.map_err(|err| {
if err.to_string().contains("-32009") {
// set verbosity lower as slot has been skipped
if err.to_string().contains("-32009") || err.to_string().contains("-32004") {
// set verbosity lower as slot has been skipped or is not available
debug!("Could not retrieve block {} due to error: {}", slot, err)
} else {
error!("Could not retrieve block {} due to error: {}", slot, err);
Expand Down

0 comments on commit 49bd4a1

Please sign in to comment.