v0.0.440 improve exerr.toJson
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 2m54s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 2m54s
This commit is contained in:
parent
fed8bccaab
commit
126d4fbd0b
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user