From 4211933cffed214b111dc568a205fb4a61e85047 Mon Sep 17 00:00:00 2001 From: monosans Date: Mon, 25 Dec 2023 15:11:23 +0300 Subject: [PATCH] Improve traceback --- proxy_scraper_checker/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index 324f8f12b..ae3b93caf 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -28,7 +28,9 @@ def set_event_loop_policy() -> None: def configure_logging(console: Console, *, debug: bool) -> None: - rich.traceback.install(console=console) + rich.traceback.install( + console=console, width=None, extra_lines=0, word_wrap=True + ) logging.basicConfig( level=logging.DEBUG if debug else logging.INFO, format="%(message)s", @@ -39,6 +41,7 @@ def configure_logging(console: Console, *, debug: bool) -> None: omit_repeated_times=False, show_path=False, rich_tracebacks=True, + tracebacks_extra_lines=0, ), ), )