From 022bfc4eedd7a9ba466d9e3619b1330435a63e2b Mon Sep 17 00:00:00 2001 From: cosmonawt Date: Thu, 7 Jun 2018 22:39:17 +0200 Subject: [PATCH] Fix logging newline --- http/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/middleware.go b/http/middleware.go index 7834241..85d2b8e 100644 --- a/http/middleware.go +++ b/http/middleware.go @@ -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) }) }