Fix: HTTP log using different logger than rest

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-03-08 13:18:01 +01:00
parent cbb31d6f02
commit 25bc26f128
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -118,7 +118,7 @@ func main() {
var handler http.Handler = router var handler http.Handler = router
handler = httpHelper.GzipHandler(handler) handler = httpHelper.GzipHandler(handler)
handler = httpHelper.NewHTTPLogHandler(handler) handler = httpHelper.NewHTTPLogHandlerWithLogger(handler, log.StandardLogger())
server := &http.Server{ server := &http.Server{
Addr: cfg.Listen, Addr: cfg.Listen,