diff --git a/inflatinator/__main__.py b/inflatinator/__main__.py index a37d434..075b7e2 100644 --- a/inflatinator/__main__.py +++ b/inflatinator/__main__.py @@ -1,10 +1,12 @@ +import logging +import os import revbank import sys -import logging def main(product_file): - logging.basicConfig(level=logging.INFO) + log_level = os.environ.get('LOG_LEVEL', 'INFO').upper() + logging.basicConfig(level=log_level) logging.getLogger("requests").setLevel(logging.WARNING) logging.getLogger("urllib3").setLevel(logging.WARNING)