Loguru v0.6.0 Release Notes

Release Date: 2022-01-29 // about 2 years ago
    • Remove internal use of pickle.loads() to fix the (finally rejected) security vulnerability referenced as CVE-2022-0329 <https://nvd.nist.gov/vuln/detail/CVE-2022-0329>_ (#563 <https://github.com/Delgan/loguru/issues/563>_).
    • โš™ Modify coroutine sink to make it discard log messages when loop=None and no event loop is running (due to internally using asyncio.get_running_loop() in place of asyncio.get_event_loop()).
    • โœ‚ Remove the possibility to add a coroutine sink with enqueue=True if loop=None and no event loop is running.
    • ๐Ÿ”„ Change default encoding of file sink to be utf8 instead of locale.getpreferredencoding() (#339 <https://github.com/Delgan/loguru/issues/339>_).
    • Prevent non-ascii characters to be escaped while logging JSON message with serialize=True (#575 <https://github.com/Delgan/loguru/pull/575>, thanks @ponponon <https://github.com/ponponon>).
    • Fix flake8 errors and improve code readability (#353 <https://github.com/Delgan/loguru/issues/353>, thanks @AndrewYakimets <https://github.com/AndrewYakimets>).

Previous changes from v0.5.3

    • Fix child process possibly hanging at exit while combining enqueue=True with third party library like uwsgi (#309 <https://github.com/Delgan/loguru/issues/309>, thanks @dstlmrk <https://github.com/dstlmrk>).
    • ๐Ÿ›  Fix possible exception during formatting of non-string messages (#331 <https://github.com/Delgan/loguru/issues/331>_).