From db1b4e653964940a9b81e2fef462356a945696ac Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Thu, 3 Jan 2019 21:02:48 -0800 Subject: [PATCH] Updated logging to match the other components --- backfiller/backfiller/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backfiller/backfiller/__main__.py b/backfiller/backfiller/__main__.py index a03755e..9b9e890 100644 --- a/backfiller/backfiller/__main__.py +++ b/backfiller/backfiller/__main__.py @@ -3,6 +3,7 @@ import gevent.monkey gevent.monkey.patch_all() import logging +import os 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" 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)