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:
parent
898da31d9a
commit
40971339a1
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue