diff options
| author | Raúl Benencia <id@rbenencia.name> | 2026-06-05 09:53:24 -0300 |
|---|---|---|
| committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2026-06-05 10:34:02 -0300 |
| commit | a9f0622ed9750593ca6de12a27bb3a92c4e419e4 (patch) | |
| tree | 604da45bf92642f77fd8774ae3cd8ae2a26abc94 /internal/handlers/middleware.go | |
| parent | 4abb0469fd32c59da1af00c90887cabb59dd6e4c (diff) | |
Use slog logging
Drop go-kit/kit/log in favor of the now standard log/slog.
Diffstat (limited to 'internal/handlers/middleware.go')
| -rw-r--r-- | internal/handlers/middleware.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/middleware.go b/internal/handlers/middleware.go index 9525efb..7ad00a0 100644 --- a/internal/handlers/middleware.go +++ b/internal/handlers/middleware.go @@ -55,7 +55,7 @@ func loggingMiddleware(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { logger := envFromRequest(r).Logger - logger.Info("component", "http", "type", "request", "src", r.RemoteAddr, "method", r.Method, "url", r.URL) + logger.Info("http request", "component", "http", "type", "request", "src", r.RemoteAddr, "method", r.Method, "url", r.URL) h.ServeHTTP(w, r) }) } |
