mirror of
https://github.com/Luzifer/go-latestver.git
synced 2024-11-08 15:10:04 +00:00
Fix: HTTP log using different logger than rest
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
cbb31d6f02
commit
25bc26f128
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -118,7 +118,7 @@ func main() {
|
|||
|
||||
var handler http.Handler = router
|
||||
handler = httpHelper.GzipHandler(handler)
|
||||
handler = httpHelper.NewHTTPLogHandler(handler)
|
||||
handler = httpHelper.NewHTTPLogHandlerWithLogger(handler, log.StandardLogger())
|
||||
|
||||
server := &http.Server{
|
||||
Addr: cfg.Listen,
|
||||
|
|
Loading…
Reference in a new issue