Browse Source

stop logging HTTP requests twice (#2993)

pull/2999/head
Alessandro Ros 1 year ago committed by GitHub
parent
commit
22a589b724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      internal/protocols/httpserv/handler_logger.go

2
internal/protocols/httpserv/handler_logger.go

@ -50,8 +50,6 @@ type handlerLogger struct { @@ -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))

Loading…
Cancel
Save