feat: better loging
/ publish (push) Successful in 3m7s

This commit is contained in:
2026-03-07 19:31:19 +01:00
parent 82e601fd7f
commit 2f7ff28c9a
10 changed files with 2029 additions and 25 deletions
-12
View File
@@ -61,15 +61,3 @@ func (s *Server) registerOther() (h http.Handler) {
h = cacheMiddleware(time.Minute * 5)(h)
return h
}
func (s *Server) loggingMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
next.ServeHTTP(w, r)
slog.Info("request",
"method", r.Method,
"path", r.URL.Path,
"duration", time.Since(start),
)
})
}