From edae6834eabebaaf72d92d64f9269cb97d6c5868 Mon Sep 17 00:00:00 2001 From: monosans Date: Mon, 2 Jan 2023 13:16:05 +0300 Subject: [PATCH] Add datefmt to logging --- proxy_scraper_checker/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index b97f0af..b27e6f5 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -29,9 +29,13 @@ def configure_logging(console: Console) -> None: logging.basicConfig( level=logging.INFO, format="%(message)s", + datefmt="%Y-%m-%d %H:%M:%S", handlers=( RichHandler( - console=console, show_path=False, rich_tracebacks=True + console=console, + omit_repeated_times=False, + show_path=False, + rich_tracebacks=True, ), ), )