Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extraneous data written by JSON sink #482

Closed
skalexander opened this issue Jun 23, 2024 · 1 comment · Fixed by #483
Closed

extraneous data written by JSON sink #482

skalexander opened this issue Jun 23, 2024 · 1 comment · Fixed by #483
Labels
bug Something isn't working

Comments

@skalexander
Copy link

Found on 4.4.0, building on MSVC 17.10

After some time, extra JSON elements are added to entries whose message is a plain string.

Attached is single file demo built from the "examples" directory examples

Running this with FileSink sink yields expected output, but with JsonFileSink output is corrupted.

Attached is a zip containing the example, and example .txt and .json output. On the json example, line 67 is the first corrupt output, showing parameters "func" and "b" added to a message that didn't specify them. These appear to be values from a previous logging call in a different function.

example.zip

@odygrd odygrd added the bug Something isn't working label Jun 24, 2024
@odygrd
Copy link
Owner

odygrd commented Jun 24, 2024

Thanks a lot for reporting this. I have added a test case and fixed the bug for the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants