Skip to content

Commit

Permalink
Delete unnecessary log output setter
Browse files Browse the repository at this point in the history
  • Loading branch information
th0th committed Nov 8, 2020
1 parent 3470d35 commit a324f69
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions http/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package http
import (
"log"
"net/http"
"os"
)

func middlewareJsonHeader(next http.Handler) http.Handler {
Expand All @@ -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)
Expand Down

0 comments on commit a324f69

Please sign in to comment.