Skip to content

Commit

Permalink
Fix logging newline
Browse files Browse the repository at this point in the history
  • Loading branch information
ldb committed Jun 7, 2018
1 parent 92df921 commit 022bfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewAuthMiddleware(provider eduboard.UserAuthenticationProvider) func(handle

func Logger(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Printf("%s: %s %s", r.RemoteAddr, r.Method, r.URL.Path)
fmt.Printf("%s: %s %s\n", r.RemoteAddr, r.Method, r.URL.Path)
next.ServeHTTP(w, r)
})
}

0 comments on commit 022bfc4

Please sign in to comment.