chore: reduce traceback verbosity

This commit is contained in:
Matthias
2024-12-29 11:44:21 +01:00
parent b6867d956c
commit 3ed1454168

View File

@@ -33,7 +33,7 @@ class FtRichHandler(Handler):
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)
tb = Traceback.from_exception(exc_type, exc_value, exc_traceback, extra_lines=1)
self._console.print(tb)
self.flush()