Updated logging to match the other components

pull/24/head
Christopher Usher 6 years ago
parent bae039977b
commit db1b4e6539

@ -3,6 +3,7 @@ import gevent.monkey
gevent.monkey.patch_all() gevent.monkey.patch_all()
import logging import logging
import os
import argh import argh
@ -11,4 +12,6 @@ from backfiller.main import main
LOG_FORMAT = "[%(asctime)s] %(levelname)8s %(name)s(%(module)s:%(lineno)d): %(message)s" LOG_FORMAT = "[%(asctime)s] %(levelname)8s %(name)s(%(module)s:%(lineno)d): %(message)s"
logging.basicConfig(level=logging.INFO, format=LOG_FORMAT) logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
level = os.environ.get('WUBLOADER_LOG_LEVEL', 'INFO').upper()
logging.basicConfig(level=level, format=LOG_FORMAT)
argh.dispatch_command(main) argh.dispatch_command(main)

Loading…
Cancel
Save