From 9c15ed9cd0c51704e77fa8b6349508a120bf6414 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 29 Jul 2018 12:23:44 +0000 Subject: [PATCH] Use better logging --- plusone.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plusone.py b/plusone.py index 6887d21..6b9c1dd 100644 --- a/plusone.py +++ b/plusone.py @@ -2,16 +2,17 @@ import asyncio import logging import re -# Turn all debugging on -asyncio.get_event_loop().set_debug(True) -logging.basicConfig(level=logging.DEBUG) - import yaboli from yaboli.utils import * from join_rooms import join_rooms # List of rooms kept in separate file, which is .gitignore'd import database +# Turn all debugging on +asyncio.get_event_loop().set_debug(True) +logging.getLogger("asyncio").setLevel(logging.INFO) +logging.getLogger("yaboli").setLevel(logging.DEBUG) + class PointDB(database.Database): @database.Database.operation