mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-26 08:50:47 +00:00
feat: simplify traceback display
The Rich way to display is confusing and pretty verbose.
This commit is contained in:
@@ -38,11 +38,6 @@ class FtRichHandler(Handler):
|
|||||||
self._console.print(
|
self._console.print(
|
||||||
Text() + log_time + gray_sep + name + gray_sep + log_level + gray_sep + msg
|
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:
|
except RecursionError:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user