diff --git a/core/logger/attrs.go b/core/logger/attrs.go index 518d180..8674c7c 100644 --- a/core/logger/attrs.go +++ b/core/logger/attrs.go @@ -25,8 +25,12 @@ func ErrAttr(err any) slog.Attr { return slog.Any(ErrorAttr, err) } -func HTTPStatus(code int) []any { - return []any{slog.Int(HTTPStatusAttr, code), slog.String(HTTPStatusNameAttr, http.StatusText(code))} +func HTTPStatusCode(code int) slog.Attr { + return slog.Int(HTTPStatusAttr, code) +} + +func HTTPStatusName(code int) slog.Attr { + return slog.String(HTTPStatusNameAttr, http.StatusText(code)) } func Body(val any) slog.Attr {