From 7151270aa48448e1103b7a3e4db613edbf41fc4a Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 4 May 2022 16:26:58 +0200 Subject: remove asyncio from logging, stop aiohttp from printing --- labbot/logger.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'labbot/logger.py') diff --git a/labbot/logger.py b/labbot/logger.py index ebe26c3..0acf78f 100644 --- a/labbot/logger.py +++ b/labbot/logger.py @@ -8,6 +8,9 @@ def init(level: int) -> None: aiohttp_logger = logging.getLogger("aiohttp") aiohttp_logger.setLevel(logging.WARNING) + asyncio_logger = logging.getLogger("asyncio") + asyncio_logger.setLevel(logging.WARNING) + formatter = logging.Formatter( "[{asctime}] [{levelname}] {name}: {message}", datefmt="%Y-%m-%d %H:%M:%S", style="{" ) -- cgit v1.2.3