Skip to content

Commit

Permalink
Don't use the root logger in KPO _suppress function (#23835)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstandish authored May 20, 2022
1 parent 4b731f4 commit 064c41a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,6 @@ def __exit__(self, exctype, excinst, exctb):
caught_error = exctype is not None and issubclass(exctype, self._exceptions)
if caught_error:
self.exception = excinst
logger = logging.getLogger()
logger = logging.getLogger(__name__)
logger.error(str(excinst), exc_info=True)
return caught_error

0 comments on commit 064c41a

Please sign in to comment.