Use better logging
This commit is contained in:
parent
25362c8e4f
commit
6706e50ba7
1 changed files with 5 additions and 4 deletions
|
|
@ -3,14 +3,15 @@ import logging
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# 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)
|
||||||
|
|
||||||
|
|
||||||
ROLL = r"[!/]r(oll)?\s+(.*)"
|
ROLL = r"[!/]r(oll)?\s+(.*)"
|
||||||
THROW = r"\s*([+-])?\s*(\d+)?d(\d+)" # 1: sign, 2: amount (default 1), 3: sides
|
THROW = r"\s*([+-])?\s*(\d+)?d(\d+)" # 1: sign, 2: amount (default 1), 3: sides
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue