Skip to content

Commit

Permalink
Improve traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Dec 25, 2023
1 parent 89b1cbe commit 4211933
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxy_scraper_checker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
),
),
)
Expand Down

0 comments on commit 4211933

Please sign in to comment.