Skip to content
Snippets Groups Projects
Commit d1717408 authored by DEBREUVE Eric's avatar DEBREUVE Eric
Browse files

non-str values directly loggable

parent 6b456ecd
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,11 @@ class _handler_extension:
def FormattedMessage(
self, record: lggg.LogRecord, /
) -> tuple[str, list[str] | None]:
""""""
# "message" is not yet an attribute of record (it will be set by format()); Use "msg" instead.
"""
Note: "message" is not yet an attribute of record (it will be set by format()); Use "msg" instead.
"""
if not isinstance(record.msg, str):
record.msg = str(record.msg)
if "\n" in record.msg:
original_message = record.msg
lines = original_message.splitlines()
......
......@@ -29,4 +29,4 @@
# The fact that you are presently reading this means that you have had
# knowledge of the CeCILL license and that you accept its terms.
__version__ = "2023.5"
__version__ = "2023.6"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment