From 14de89989ae3929141b063c6d8927271ca5459cd Mon Sep 17 00:00:00 2001 From: 1e99 <1e99@1e99.eu> Date: Wed, 30 Oct 2024 10:44:37 +0100 Subject: [PATCH] improve logging --- middlewares/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middlewares/logger.go b/middlewares/logger.go index 10b474e..32edd68 100644 --- a/middlewares/logger.go +++ b/middlewares/logger.go @@ -7,7 +7,7 @@ import ( func Logger(handler http.Handler) http.HandlerFunc { return func(res http.ResponseWriter, req *http.Request) { - log.Printf("%-30s %-80s", req.RemoteAddr, req.URL.Path) + log.Printf("%-30s %s", req.RemoteAddr, req.URL.Path) handler.ServeHTTP(res, req) } }