From 6f5c89ba6d0b7073d0d10c8455cee54ab9ddff8d Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Tue, 17 Oct 2023 23:31:04 -0500 Subject: [PATCH] fix: log critical escrow issues as errors Instead of warnings. --- common/src/escrow_accounts.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/escrow_accounts.rs b/common/src/escrow_accounts.rs index 1d4149fe..1d878847 100644 --- a/common/src/escrow_accounts.rs +++ b/common/src/escrow_accounts.rs @@ -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; @@ -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 @@ -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 );