21
0
Fork 0

v0.0.275 fix missing returns in `(v MetaValue) ShortString`
Build Docker and Deploy / Run goext test-suite (push) Successful in 54s Details

This commit is contained in:
Mike Schwörer 2023-09-29 16:00:40 +02:00
parent 7577a2dd47
commit 98486842ae
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 5 deletions

View File

@ -223,7 +223,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
if limitLen == nil {
return evt.Str(key, v.Value.(string))
} else {
evt.Str(key, langext.StrLimit(v.Value.(string), *limitLen, "..."))
return evt.Str(key, langext.StrLimit(v.Value.(string), *limitLen, "..."))
}
case MDTID:
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 {
return evt.Str(key, v.Value.(AnyWrap).Json)
} else {
evt.Str(key, langext.StrLimit(v.Value.(AnyWrap).Json, *limitLen, "..."))
return evt.Str(key, langext.StrLimit(v.Value.(AnyWrap).Json, *limitLen, "..."))
}
}
case MDTStringPtr:
@ -244,7 +244,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
if limitLen == nil {
return evt.Str(key, langext.CoalesceString(v.Value.(*string), "<<null>>"))
} 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:
return evt.Int(key, v.Value.(int))

View File

@ -1,5 +1,5 @@
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"