Skip to content

Commit f9f8b23

Browse files
authored
Parse error to debug (#32)
1 parent 78a3892 commit f9f8b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/immutable_newrelic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ func newRelicMiddleware(nrApp *newrelic.Application, next http.Handler) http.Han
7070
return
7171
}
7272
requestBody := RequestBody{}
73-
if err = json.Unmarshal(body, &requestBody); err != nil {
74-
log.WithError(err).Error("Failed to parse request body")
73+
if err := json.Unmarshal(body, &requestBody); err != nil {
74+
log.Debug("Failed to parse request body", "body", body, "err", err.Error())
7575
} else {
7676
// Add the RPC method to the transaction attributes
7777
txn.AddAttribute("rpcMethod", requestBody.Method)

0 commit comments

Comments
 (0)