stop logging HTTP requests twice (#2993)

This commit is contained in:
Alessandro Ros 2024-02-05 22:26:33 +01:00 committed by GitHub
parent b92c8c2613
commit 22a589b724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))