mirror of
https://github.com/Crocmagnon/lyon-transports.git
synced 2024-11-24 23:18:06 +01:00
update log msg
This commit is contained in:
parent
de3e535f81
commit
4a906473de
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -138,7 +138,7 @@ func logging(ctx huma.Context, next func(huma.Context)) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
next(ctx)
|
next(ctx)
|
||||||
elapsed := time.Since(start)
|
elapsed := time.Since(start)
|
||||||
slog.InfoContext(ctx.Context(), "response",
|
slog.InfoContext(ctx.Context(), "received request",
|
||||||
"method", ctx.Method(),
|
"method", ctx.Method(),
|
||||||
"path", ctx.URL().Path,
|
"path", ctx.URL().Path,
|
||||||
"status", ctx.Status(),
|
"status", ctx.Status(),
|
||||||
|
|
Loading…
Reference in a new issue