Skip to content

Commit

Permalink
Log exception info for 'ERROR' level messages (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar authored Jul 1, 2024
1 parent 42a624b commit 35f3306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch_backup/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def exception(msg, *args, **kwargs):
Log a message with severity 'ERROR' with exception information.
"""

with_exception = kwargs.get("exc_info", False)
with_exception = kwargs.get("exc_info", True)
getLogger("ch-backup").opt(exception=with_exception).debug(msg, *args, **kwargs)


Expand Down

0 comments on commit 35f3306

Please sign in to comment.