Skip to content

Commit f6f2720

Browse files
committed
chore(logger): uncaught exception to use exception value as message
1 parent 94dd3b5 commit f6f2720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/logging/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,4 +753,4 @@ def _is_internal_frame(frame): # pragma: no cover
753753

754754
def log_uncaught_exception_hook(exc_type, exc_value, exc_traceback, logger: Logger):
755755
"""Callback function for sys.excepthook to use Logger to log uncaught exceptions"""
756-
logger.exception("Uncaught exception", exc_info=(exc_type, exc_value, exc_traceback)) # pragma: no cover
756+
logger.exception(exc_value, exc_info=(exc_type, exc_value, exc_traceback)) # pragma: no cover

0 commit comments

Comments
 (0)