Skip to content

Commit

Permalink
Fix unnecessary logging (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro authored Jun 16, 2024
1 parent ac30607 commit 3673378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.6.0beta3"
__version__ = "5.6.0beta4"
2 changes: 2 additions & 0 deletions src/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def setup(log_level: str = "DEBUG") -> None:


def _log_unhandled_exceptions(args: typing.Any) -> None:
if len(args) >= 2 and isinstance(args[1], SystemExit):
return
LOGGER.critical(
f"Unhandled exception caused by thread '{args.thread.name}'", exc_info=(args.exc_type, args.exc_value, args.exc_traceback)
)

0 comments on commit 3673378

Please sign in to comment.