From 15e64f0fa182ae109fd5f92f070919e3a3d75205 Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Sun, 15 Oct 2023 15:28:39 +0200 Subject: [PATCH] Only log warnings for httpx Signed-off-by: Eiko Wagenknecht --- src/lootscraper/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lootscraper/main.py b/src/lootscraper/main.py index 964b5a6..8931606 100644 --- a/src/lootscraper/main.py +++ b/src/lootscraper/main.py @@ -30,6 +30,9 @@ logger = logging.getLogger() +# Tone down the logging of httpx, we don't need to see every request +logging.getLogger("httpx").setLevel(logging.WARNING) + EXAMPLE_CONFIG_FILE = "config.default.toml" LOGFORMAT = "%(asctime)s [%(levelname)s] (%(name)s) %(message)s"