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

firehose: Dont use debug format on firehose errors #3990

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
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: 3 additions & 3 deletions graph/src/blockchain/firehose_block_ingestor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ where
latest_cursor = self.process_blocks(latest_cursor, stream).await
}
Err(e) => {
error!(self.logger, "Unable to connect to endpoint: {:?}", e);
error!(self.logger, "Unable to connect to endpoint: {:#}", e);
}
}

Expand All @@ -89,7 +89,7 @@ where
match self.chain_store.clone().chain_head_cursor() {
Ok(cursor) => return cursor.unwrap_or_else(|| "".to_string()),
Err(e) => {
error!(self.logger, "Fetching chain head cursor failed: {:?}", e);
error!(self.logger, "Fetching chain head cursor failed: {:#}", e);

backoff.sleep_async().await;
}
Expand Down Expand Up @@ -128,7 +128,7 @@ where
};

if let Err(e) = result {
error!(self.logger, "Process block failed: {:?}", e);
error!(self.logger, "Process block failed: {:#}", e);
break;
}

Expand Down
4 changes: 2 additions & 2 deletions graph/src/blockchain/substreams_block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ fn stream_blocks<C: Blockchain, F: SubstreamsMapper<C>>(

metrics.observe_failed_connection(&mut connect_start);

error!(logger, "Unable to connect to endpoint: {:?}", e);
error!(logger, "Unable to connect to endpoint: {:#}", e);
}
}

Expand All @@ -287,7 +287,7 @@ async fn process_substreams_response<C: Blockchain, F: SubstreamsMapper<C>>(
) -> Result<Option<BlockResponse<C>>, Error> {
let response = match result {
Ok(v) => v,
Err(e) => return Err(anyhow!("An error occurred while streaming blocks: {:?}", e)),
Err(e) => return Err(anyhow!("An error occurred while streaming blocks: {:#}", e)),
};

match response.message {
Expand Down