v0.0.275 fix missing returns in (v MetaValue) ShortString
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 54s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 54s
This commit is contained in:
parent
7577a2dd47
commit
98486842ae
@ -223,7 +223,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
|
|||||||
if limitLen == nil {
|
if limitLen == nil {
|
||||||
return evt.Str(key, v.Value.(string))
|
return evt.Str(key, v.Value.(string))
|
||||||
} else {
|
} else {
|
||||||
evt.Str(key, langext.StrLimit(v.Value.(string), *limitLen, "..."))
|
return evt.Str(key, langext.StrLimit(v.Value.(string), *limitLen, "..."))
|
||||||
}
|
}
|
||||||
case MDTID:
|
case MDTID:
|
||||||
return evt.Str(key, v.Value.(IDWrap).Value)
|
return evt.Str(key, v.Value.(IDWrap).Value)
|
||||||
@ -234,7 +234,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
|
|||||||
if limitLen == nil {
|
if limitLen == nil {
|
||||||
return evt.Str(key, v.Value.(AnyWrap).Json)
|
return evt.Str(key, v.Value.(AnyWrap).Json)
|
||||||
} else {
|
} else {
|
||||||
evt.Str(key, langext.StrLimit(v.Value.(AnyWrap).Json, *limitLen, "..."))
|
return evt.Str(key, langext.StrLimit(v.Value.(AnyWrap).Json, *limitLen, "..."))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case MDTStringPtr:
|
case MDTStringPtr:
|
||||||
@ -244,7 +244,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
|
|||||||
if limitLen == nil {
|
if limitLen == nil {
|
||||||
return evt.Str(key, langext.CoalesceString(v.Value.(*string), "<<null>>"))
|
return evt.Str(key, langext.CoalesceString(v.Value.(*string), "<<null>>"))
|
||||||
} else {
|
} else {
|
||||||
evt.Str(key, langext.StrLimit(langext.CoalesceString(v.Value.(*string), "<<null>>"), *limitLen, "..."))
|
return evt.Str(key, langext.StrLimit(langext.CoalesceString(v.Value.(*string), "<<null>>"), *limitLen, "..."))
|
||||||
}
|
}
|
||||||
case MDTInt:
|
case MDTInt:
|
||||||
return evt.Int(key, v.Value.(int))
|
return evt.Int(key, v.Value.(int))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.274"
|
const GoextVersion = "0.0.275"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-09-27T16:18:21+0200"
|
const GoextVersionTimestamp = "2023-09-29T16:00:40+0200"
|
||||||
|
Loading…
Reference in New Issue
Block a user