From a935ec015d97e46626c9779506b5a75b494a9954 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Sat, 30 Sep 2023 20:14:03 +0600 Subject: [PATCH] :wrench: Used already initialized logger in server configuration --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index cfa11e5..e59f306 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,8 @@ func main() { mediaHandler := mediahttpdelivery.NewHandler(mediaUseCase, *config) server := http.Server{ - Addr: config.HTTP.Bind, + ErrorLog: logger, + Addr: config.HTTP.Bind, Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { head, _ := urlutil.ShiftPath(r.RequestURI)