From 39f454b630ac859c6960bfd38f430e0a8e078538 Mon Sep 17 00:00:00 2001 From: sergerad Date: Mon, 10 Mar 2025 16:00:37 +1300 Subject: [PATCH] Parse error to debug --- node/immutable_newrelic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/immutable_newrelic.go b/node/immutable_newrelic.go index c7e405edc..f0c8f4c6f 100644 --- a/node/immutable_newrelic.go +++ b/node/immutable_newrelic.go @@ -70,8 +70,8 @@ func newRelicMiddleware(nrApp *newrelic.Application, next http.Handler) http.Han return } requestBody := RequestBody{} - if err = json.Unmarshal(body, &requestBody); err != nil { - log.WithError(err).Error("Failed to parse request body") + if err := json.Unmarshal(body, &requestBody); err != nil { + log.Debug("Failed to parse request body", "body", body, "err", err.Error()) } else { // Add the RPC method to the transaction attributes txn.AddAttribute("rpcMethod", requestBody.Method)