Skip to content
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
3 changes: 3 additions & 0 deletions crates/monitor/src/client/subgraph_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use graphql_client::GraphQLQuery;
use reqwest::{header, Url};
use thegraph_core::DeploymentId;
use tokio::sync::watch::Receiver;
use tracing::debug;

use super::monitor::{monitor_deployment_status, DeploymentStatus};

Expand Down Expand Up @@ -117,8 +118,10 @@ impl DeploymentClient {
.post(self.query_url.as_ref())
.header(header::USER_AGENT, "indexer-common")
.json(&body);
debug!("QUERY URL check {}", self.query_url);

if let Some(token) = self.query_auth_token.as_ref() {
debug!("QUERY AUTH TOKEN check {}", token);
req = req.header(header::AUTHORIZATION, format!("Bearer {}", token));
}

Expand Down
Loading