From 22a589b724ce06db34cd315a97dd5a561358921f Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Mon, 5 Feb 2024 22:26:33 +0100 Subject: [PATCH] stop logging HTTP requests twice (#2993) --- internal/protocols/httpserv/handler_logger.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/protocols/httpserv/handler_logger.go b/internal/protocols/httpserv/handler_logger.go index 9e3162f6..f18d1702 100644 --- a/internal/protocols/httpserv/handler_logger.go +++ b/internal/protocols/httpserv/handler_logger.go @@ -50,8 +50,6 @@ type handlerLogger struct { } func (h *handlerLogger) ServeHTTP(w http.ResponseWriter, r *http.Request) { - h.log.Log(logger.Debug, "[conn %v] %s %s", r.RemoteAddr, r.Method, r.URL.Path) - byts, _ := httputil.DumpRequest(r, true) h.log.Log(logger.Debug, "[conn %v] [c->s] %s", r.RemoteAddr, string(byts))