aboutsummaryrefslogtreecommitdiff
path: root/labbot/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'labbot/logger.py')
-rw-r--r--labbot/logger.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/labbot/logger.py b/labbot/logger.py
index 067bcac..ebe26c3 100644
--- a/labbot/logger.py
+++ b/labbot/logger.py
@@ -1,10 +1,13 @@
import sys
import logging
-def init(level: int):
+def init(level: int) -> None:
logger = logging.getLogger()
logger.setLevel(level)
+ aiohttp_logger = logging.getLogger("aiohttp")
+ aiohttp_logger.setLevel(logging.WARNING)
+
formatter = logging.Formatter(
"[{asctime}] [{levelname}] {name}: {message}", datefmt="%Y-%m-%d %H:%M:%S", style="{"
)