Skip to content

Commit

Permalink
Add more logging for indexer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Sep 14, 2022
1 parent 4cc13c3 commit 816cd41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions graph-gateway/src/query_engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,14 @@ where
.collect::<Vec<String>>();
result.indexer_errors = indexer_errors.join(",");

if !indexer_errors.is_empty() {
tracing::debug!(
errors = %result.indexer_errors,
query = %result.query,
"indexer errors",
);
}

if indexer_errors.iter().any(|err| {
err == "Failed to decode `block.hash` value: `no block with that hash found`"
}) {
Expand Down

0 comments on commit 816cd41

Please sign in to comment.