fix: log correct response status

This commit is contained in:
kolaente 2025-07-28 13:27:12 +02:00
parent de917467cb
commit 388af80ece
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ func slogHTTPMiddleware(logger *slog.Logger) echo.MiddlewareFunc {
start := time.Now() start := time.Now()
err := next(c) err := next(c)
if err != nil {
c.Error(err)
}
req := c.Request() req := c.Request()
res := c.Response() res := c.Response()