From 40971339a1fec15af905631cc4987d6adc08d233 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 6 Feb 2021 22:55:12 +0100 Subject: [PATCH] Fix: Pass in logger Signed-off-by: Knut Ahlers --- http/logHandler.go | 1 + 1 file changed, 1 insertion(+) 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, } }