[actions] add 'LoggerAdapter.traceback()' method (#8317)

8c62be343e
This commit is contained in:
Mike Fährmann
2025-11-28 14:13:45 +01:00
parent 11151033f6
commit 5e3284f0e6

View File

@@ -148,6 +148,11 @@ class LoggerAdapter():
if cond(msg):
action(args)
def traceback(self, exc):
if self.logger.isEnabledFor(logging.DEBUG):
self.logger._log(
logging.DEBUG, "", None, exc_info=exc, extra=self.extra)
def _level_to_int(level):
try: