Closed gavares closed 1 year ago
@gavares thank you very much for report, look like there is general issue in case where json attribute value is empty, and does not matter if it is span or something else,
I created fix for that #784
Wow, thanks for the quick response @justcoon
zio-logging version: 2.1.14
Used with:
Log configuration is read from HOCON with format string:
Any calls to log methods in scopes which do not have defined spans result in invalid json. For example, a logDebug message printed from a webserver filter:
Results in:
newlines added for readability
You can see in the last line that logging with no defined spans prints a key, there is a call to
LogAppender.closeKeyOpenValue()
and then nothing is printed.The right behavior here is likely one of:
spans
key ifList[LogSpan[
is emptynull
ifList[LogSpan]
is empty{}
ifList[LogSpan]
is empty