Simplify logging.getLogger because they are hierarchical.
This commit is contained in:
parent
2da4568fb5
commit
6bd4997f3f
2 changed files with 2 additions and 6 deletions
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue