diff --git a/core/logger/attrs.go b/core/logger/attrs.go index 6e802c8..a8cc17b 100644 --- a/core/logger/attrs.go +++ b/core/logger/attrs.go @@ -24,6 +24,6 @@ func ErrAttr(err any) slog.Attr { return slog.Any(ErrorAttr, err) } -func HTTPStatus(code int) (slog.Attr, slog.Attr) { - return slog.Int(HTTPStatusAttr, code), slog.String(HTTPStatusNameAttr, http.StatusText(code)) +func HTTPStatus(code int) []any { + return []any{slog.Int(HTTPStatusAttr, code), slog.String(HTTPStatusNameAttr, http.StatusText(code))} }