Simplify logging.getLogger because they are hierarchical.

This commit is contained in:
voussoir 2020-08-12 11:25:59 -07:00
parent 2da4568fb5
commit 6bd4997f3f
2 changed files with 2 additions and 6 deletions

View file

@ -1,8 +1,6 @@
import logging import logging
logging.basicConfig() logging.basicConfig()
logging.getLogger('ycdl.ycdldb').setLevel(logging.DEBUG) logging.getLogger('ycdl').setLevel(logging.DEBUG)
logging.getLogger('ycdl.ytapi').setLevel(logging.DEBUG)
logging.getLogger('ycdl.ytrss').setLevel(logging.DEBUG)
import gevent.monkey import gevent.monkey
gevent.monkey.patch_all() gevent.monkey.patch_all()

View file

@ -4,9 +4,7 @@ session with these variables preloaded.
''' '''
import logging import logging
logging.basicConfig() logging.basicConfig()
logging.getLogger('ycdl.ycdldb').setLevel(logging.DEBUG) logging.getLogger('ycdl').setLevel(logging.DEBUG)
logging.getLogger('ycdl.ytapi').setLevel(logging.DEBUG)
logging.getLogger('ycdl.ytrss').setLevel(logging.DEBUG)
import bot import bot
import ycdl import ycdl