Skip to content

Commit

Permalink
test: added logs for test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosvdr committed Dec 9, 2024
1 parent ccdb398 commit 2d9e4fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/monitor/src/client/subgraph_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use graphql_client::GraphQLQuery;
use reqwest::{header, Url};
use thegraph_core::DeploymentId;
use tokio::sync::watch::Receiver;
use tracing::warn;
use tracing::{debug, warn};

pub type ResponseResult<T> = Result<T, anyhow::Error>;

Expand Down Expand Up @@ -199,6 +199,10 @@ impl SubgraphClient {
// Try the local client first; if that fails, log the error and move on
// to the remote client
if let Some(ref local_client) = self.local_client {
debug!(
"Info for local subgraph deployment `{}` status is: `{:#?}` and client is `{:#?}`",
local_client.query_url, local_client.status, local_client.http_client
);
match local_client.query::<Q>(variables.clone()).await {
Ok(response) => return Ok(response),
Err(err) => warn!(
Expand Down

0 comments on commit 2d9e4fb

Please sign in to comment.