Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added logs for test #538

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading