From 0197c70d80e9ccc41f338d9c749e6fa9bb5280d8 Mon Sep 17 00:00:00 2001 From: Michal Rudowicz Date: Wed, 12 Jun 2024 06:54:59 +0200 Subject: [PATCH] Avoid logs from HTTPX --- autobanbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autobanbot.py b/autobanbot.py index 52630a2..feece93 100755 --- a/autobanbot.py +++ b/autobanbot.py @@ -29,6 +29,7 @@ async def new_msg(update, context, regexes): if __name__ == '__main__': logging.basicConfig(format='%(asctime)s|%(levelname)s|%(message)s', level=logging.INFO) + logging.getLogger("httpx").setLevel(logging.WARNING) logging.info("Starting") config = load_config() application = Application.builder().token(config["telegramApiKey"]).build()