feat: simplify traceback display

The Rich way to display is confusing and pretty verbose.
This commit is contained in:
Matthias
2025-01-29 18:21:07 +01:00
parent 486a4ed5c0
commit a6005fde28

View File

@@ -38,11 +38,6 @@ class FtRichHandler(Handler):
self._console.print(
Text() + log_time + gray_sep + name + gray_sep + log_level + gray_sep + msg
)
tb = None
if record.exc_info:
exc_type, exc_value, exc_traceback = record.exc_info
tb = Traceback.from_exception(exc_type, exc_value, exc_traceback, extra_lines=1)
self._console.print(tb)
except RecursionError:
raise