improve logging

This commit is contained in:
1e99 2024-10-30 10:44:37 +01:00
parent afcd407f1d
commit 14de89989a

View file

@ -7,7 +7,7 @@ import (
func Logger(handler http.Handler) http.HandlerFunc { func Logger(handler http.Handler) http.HandlerFunc {
return func(res http.ResponseWriter, req *http.Request) { 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) handler.ServeHTTP(res, req)
} }
} }