Skip to content

Commit

Permalink
fix: log critical escrow issues as errors
Browse files Browse the repository at this point in the history
Instead of warnings.
  • Loading branch information
Jannis committed Oct 18, 2023
1 parent 2324ea6 commit 6f5c89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/escrow_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use alloy_primitives::Address;
use anyhow::Result;
use ethers_core::types::U256;
use eventuals::{timer, Eventual, EventualExt};
use log::warn;
use log::{error, warn};
use serde::Deserialize;
use serde_json::json;
use tokio::time::sleep;
Expand Down Expand Up @@ -66,7 +66,7 @@ pub fn escrow_accounts(

// If there are any GraphQL errors returned, we'll log them for debugging
if let Some(errors) = response.errors {
warn!(
error!(
"Errors encountered fetching escrow accounts for indexer {:?}: {}",
indexer_address,
errors
Expand Down Expand Up @@ -103,7 +103,7 @@ pub fn escrow_accounts(
Ok(sender_accounts)
},
move |err: String| {
warn!(
error!(
"Failed to fetch escrow accounts for indexer {:?}: {}",
indexer_address, err
);
Expand Down

0 comments on commit 6f5c89b

Please sign in to comment.