diff --git a/http/logHandler.go b/http/logHandler.go index 3504f37..c13f802 100644 --- a/http/logHandler.go +++ b/http/logHandler.go @@ -26,6 +26,7 @@ func NewHTTPLogHandlerWithLogger(h http.Handler, l logrus.StdLogger) http.Handle return HTTPLogHandler{ Handler: h, TrustedIPHeaders: []string{"X-Forwarded-For", "RemoteAddr", "X-Real-IP"}, + logger: l, } }