1
0
Fork 0
mirror of https://github.com/Luzifer/go_helpers.git synced 2024-12-25 13:31:21 +00:00

Fix: Pass in logger

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-02-06 22:55:12 +01:00
parent 898da31d9a
commit 40971339a1
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -26,6 +26,7 @@ func NewHTTPLogHandlerWithLogger(h http.Handler, l logrus.StdLogger) http.Handle
return HTTPLogHandler{ return HTTPLogHandler{
Handler: h, Handler: h,
TrustedIPHeaders: []string{"X-Forwarded-For", "RemoteAddr", "X-Real-IP"}, TrustedIPHeaders: []string{"X-Forwarded-For", "RemoteAddr", "X-Real-IP"},
logger: l,
} }
} }