aboutsummaryrefslogtreecommitdiff
path: root/labbot/logger.py
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-05-04 16:26:58 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-05-04 16:26:58 +0200
commit7151270aa48448e1103b7a3e4db613edbf41fc4a (patch)
treeec405180a198a7d1bf3d630d286ff7b619686ef8 /labbot/logger.py
parentffa2b438ae0d25163ebd9ea7d28be53fdf57b85b (diff)
downloadlab-bot-7151270aa48448e1103b7a3e4db613edbf41fc4a.tar.gz
lab-bot-7151270aa48448e1103b7a3e4db613edbf41fc4a.zip
remove asyncio from logging, stop aiohttp from printing
Diffstat (limited to 'labbot/logger.py')
-rw-r--r--labbot/logger.py3
1 files changed, 3 insertions, 0 deletions
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="{"
)