Use better logging
This commit is contained in:
parent
9a5eb79a0b
commit
d88bf2004f
1 changed files with 5 additions and 4 deletions
|
|
@ -1,14 +1,15 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# Turn all debugging on
|
|
||||||
asyncio.get_event_loop().set_debug(True)
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
|
||||||
|
|
||||||
import yaboli
|
import yaboli
|
||||||
from yaboli.utils import *
|
from yaboli.utils import *
|
||||||
from join_rooms import join_rooms # List of rooms kept in separate file, which is .gitignore'd
|
from join_rooms import join_rooms # List of rooms kept in separate file, which is .gitignore'd
|
||||||
|
|
||||||
|
# Turn all debugging on
|
||||||
|
asyncio.get_event_loop().set_debug(True)
|
||||||
|
logging.getLogger("asyncio").setLevel(logging.INFO)
|
||||||
|
logging.getLogger("yaboli").setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
|
||||||
class InfoBot(yaboli.Bot):
|
class InfoBot(yaboli.Bot):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue