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

print -> showmessage compatible lambda

parent a25a8b87
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,9 @@ with TemporaryDirectory() as tmp_folder: ...@@ -57,7 +57,9 @@ with TemporaryDirectory() as tmp_folder:
should_record=True, should_record=True,
alternating_lines=1, alternating_lines=1,
) )
AddGenericHandler(print, message_width=80, should_hold_messages=True) AddGenericHandler(
lambda _arg, *_, **__: print(_arg), message_width=80, should_hold_messages=True
)
AddFileHandler(tmp_file, show_memory_usage=True) # Level=lggg.INFO. AddFileHandler(tmp_file, show_memory_usage=True) # Level=lggg.INFO.
LOGGER.ToggleLogInterceptions(True) LOGGER.ToggleLogInterceptions(True)
......
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