From 126d4fbd0bb7f6f4de54ad670199ce4da68bd7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 29 Apr 2024 16:03:58 +0200 Subject: [PATCH] v0.0.440 improve exerr.toJson --- exerr/gin.go | 6 +++--- goextVersion.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exerr/gin.go b/exerr/gin.go index 1f4cfaf..14d1b9d 100644 --- a/exerr/gin.go +++ b/exerr/gin.go @@ -15,10 +15,10 @@ func (ee *ExErr) toJson(depth int, applyExtendListener bool, outputMeta bool) la ginJson["id"] = ee.UniqueID } if ee.Category != CatWrap { - ginJson["category"] = ee.Category + ginJson["category"] = ee.Category.Category } if ee.Type != TypeWrap { - ginJson["type"] = ee.Type + ginJson["type"] = ee.Type.Key } if ee.StatusCode != nil { ginJson["statuscode"] = ee.StatusCode @@ -30,7 +30,7 @@ func (ee *ExErr) toJson(depth int, applyExtendListener bool, outputMeta bool) la ginJson["caller"] = ee.Caller } if ee.Severity != SevErr { - ginJson["severity"] = ee.Severity + ginJson["severity"] = ee.Severity.Severity } if ee.Timestamp != (time.Time{}) { ginJson["time"] = ee.Timestamp.Format(time.RFC3339) diff --git a/goextVersion.go b/goextVersion.go index 90dd53f..e9d2a2d 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.439" +const GoextVersion = "0.0.440" -const GoextVersionTimestamp = "2024-04-25T11:47:16+0200" +const GoextVersionTimestamp = "2024-04-29T16:03:58+0200"