From dbf2f8d12370f96ef8d99dc55139b50f3cff645b Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 17 Feb 2022 10:06:13 -0800 Subject: [PATCH] Log the error when reading the intake req body fails --- apm-lambda-extension/extension/route_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apm-lambda-extension/extension/route_handlers.go b/apm-lambda-extension/extension/route_handlers.go index 8d1915e5..72671230 100644 --- a/apm-lambda-extension/extension/route_handlers.go +++ b/apm-lambda-extension/extension/route_handlers.go @@ -89,7 +89,7 @@ func handleIntakeV2Events(agentDataChan chan AgentData) func(w http.ResponseWrit rawBytes, err := ioutil.ReadAll(r.Body) defer r.Body.Close() if err != nil { - log.Println("Could not read bytes from agent request body") + log.Printf("Could not read agent intake request body: %v\n", err) return }