Skip to content

Commit

Permalink
Update Utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>
  • Loading branch information
NewSoupVi and beauxq authored Dec 9, 2024
1 parent 409c915 commit 2e81774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def __init__(self, filter_name: str, condition: typing.Callable[[logging.LogReco
def filter(self, record: logging.LogRecord) -> bool:
return self.condition(record)

file_handler.addFilter(Filter("NoStream", lambda record: not getattr(record, "NoFile", False)))
file_handler.addFilter(Filter("NoStream", lambda record: not getattr(record, "NoFile", False)))
file_handler.addFilter(Filter("NoCarriageReturn", lambda record: '\r' not in record.getMessage()))
root_logger.addHandler(file_handler)
if sys.stdout:
Expand Down

0 comments on commit 2e81774

Please sign in to comment.