update log msg

This commit is contained in:
Gabriel Augendre 2024-10-10 19:06:33 +02:00
parent de3e535f81
commit 4a906473de

View file

@ -138,7 +138,7 @@ func logging(ctx huma.Context, next func(huma.Context)) {
start := time.Now()
next(ctx)
elapsed := time.Since(start)
slog.InfoContext(ctx.Context(), "response",
slog.InfoContext(ctx.Context(), "received request",
"method", ctx.Method(),
"path", ctx.URL().Path,
"status", ctx.Status(),