Skip to content

Commit

Permalink
Merge pull request #231 from Pennyw0rth/marshall-logging-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack authored Mar 27, 2024
2 parents 52754f6 + eaeda89 commit 15d52b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create_temp_logger(caller_frame, formatted_text, args, kwargs):
temp_logger = logging.getLogger("temp")
formatter = logging.Formatter("%(message)s", datefmt="[%X]")
handler = SmartDebugRichHandler(formatter=formatter)
handler.handle(LogRecord(temp_logger.name, logging.DEBUG, caller_frame.f_code.co_filename, caller_frame.f_lineno, formatted_text, args, kwargs, caller_frame=caller_frame))
handler.handle(LogRecord(temp_logger.name, logging.INFO, caller_frame.f_code.co_filename, caller_frame.f_lineno, formatted_text, args, kwargs, caller_frame=caller_frame))


class SmartDebugRichHandler(RichHandler):
Expand Down

0 comments on commit 15d52b7

Please sign in to comment.