From 01036c2ebe3a1cf2e6501865de05e4607622c572 Mon Sep 17 00:00:00 2001 From: Rick Bijkerk Date: Mon, 22 Jul 2024 17:10:05 +0200 Subject: [PATCH] improve graphql error logging (#105) Co-authored-by: Rick Bijkerk --- internal/http/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/proxy/proxy.go b/internal/http/proxy/proxy.go index 4a39cc0..11ce12c 100644 --- a/internal/http/proxy/proxy.go +++ b/internal/http/proxy/proxy.go @@ -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() {