We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d7d478 commit 4224df5Copy full SHA for 4224df5
aws_lambda_powertools/logging/logger.py
@@ -745,8 +745,6 @@ def registered_handler(self) -> logging.Handler:
745
# We ignore mypy here because self.child encodes whether or not self._logger.parent is
746
# None, mypy can't see this from context but we can
747
return self._get_handler()
748
- handlers = self._logger.parent.handlers if self.child else self._logger.handlers # type: ignore[union-attr]
749
- return handlers[0]
750
751
@property
752
def registered_formatter(self) -> BasePowertoolsFormatter:
0 commit comments