Skip to content

Commit

Permalink
improve graphql error logging (#105)
Browse files Browse the repository at this point in the history
Co-authored-by: Rick Bijkerk <[email protected]>
  • Loading branch information
rickbijkerk and Rick Bijkerk authored Jul 22, 2024
1 parent 333977d commit 01036c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func modifyResponse(blockFieldSuggestions *block_field_suggestions.BlockFieldSug
}

if logGraphqlErrors && response["errors"] != nil {
log.Info("Graphql error", response["errors"])
log.Info("Graphql error", "body", response["errors"])
}

if blockFieldSuggestions != nil && blockFieldSuggestions.Enabled() {
Expand Down

0 comments on commit 01036c2

Please sign in to comment.