Move logging.basicConfig call up to include messages from imported modules
This commit is contained in:
parent
5bcb01bd9e
commit
129647cb70
@ -752,10 +752,10 @@ def make_app(global_conf, **local_conf):
|
|||||||
return SyncApp(**local_conf)
|
return SyncApp(**local_conf)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
from wsgiref.simple_server import make_server
|
from wsgiref.simple_server import make_server
|
||||||
from ankisyncd.thread import shutdown
|
from ankisyncd.thread import shutdown
|
||||||
import ankisyncd.config
|
import ankisyncd.config
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
# backwards compat
|
# backwards compat
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user