Skip to content

Commit

Permalink
fix: reduce log level for missing block query error
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Oct 21, 2024
1 parent 8d83ee0 commit ed917fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ async fn main() -> anyhow::Result<()> {
{
Ok(escrow_accounts) => escrow_accounts,
Err(escrow_accounts_err) => {
tracing::error!("{:#}", escrow_accounts_err.context("escrow accounts"));
if escrow_accounts_err.to_string().contains("missing block") {
tracing::warn!("{:#}", escrow_accounts_err.context("escrow accounts"));
} else {
tracing::error!("{:#}", escrow_accounts_err.context("escrow accounts"));
}
continue;
}
};
Expand Down

0 comments on commit ed917fd

Please sign in to comment.