Move logging.basicConfig call up to include messages from imported modules

This commit is contained in:
flan 2018-08-28 17:16:19 +02:00
parent 5bcb01bd9e
commit 129647cb70

View File

@ -752,10 +752,10 @@ def make_app(global_conf, **local_conf):
return SyncApp(**local_conf)
def main():
logging.basicConfig(level=logging.INFO)
from wsgiref.simple_server import make_server
from ankisyncd.thread import shutdown
import ankisyncd.config
logging.basicConfig(level=logging.INFO)
if len(sys.argv) > 1:
# backwards compat