From a324f6952f4ba4376b5cf8b8e274364d025bb218 Mon Sep 17 00:00:00 2001 From: Gokhan Sari Date: Sun, 8 Nov 2020 21:51:31 +0300 Subject: [PATCH] Delete unnecessary log output setter --- http/middleware.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/http/middleware.go b/http/middleware.go index c481ed7..8cb7c0f 100644 --- a/http/middleware.go +++ b/http/middleware.go @@ -3,7 +3,6 @@ package http import ( "log" "net/http" - "os" ) func middlewareJsonHeader(next http.Handler) http.Handler { @@ -16,7 +15,6 @@ func middlewareJsonHeader(next http.Handler) http.Handler { func middlewareIndexLogger(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - log.SetOutput(os.Stdout) log.Println(r.Method, r.URL) next.ServeHTTP(w, r)