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"