Skip to content

Commit 2d9e4fb

Browse files
committed
test: added logs for test
1 parent ccdb398 commit 2d9e4fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/monitor/src/client/subgraph_client.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use graphql_client::GraphQLQuery;
88
use reqwest::{header, Url};
99
use thegraph_core::DeploymentId;
1010
use tokio::sync::watch::Receiver;
11-
use tracing::warn;
11+
use tracing::{debug, warn};
1212

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

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

0 commit comments

Comments
 (0)