diff --git a/catalyst/constants.py b/catalyst/constants.py index bbdae343..1793257e 100644 --- a/catalyst/constants.py +++ b/catalyst/constants.py @@ -1,8 +1,13 @@ # -*- coding: utf-8 -*- +import os import logbook -LOG_LEVEL = logbook.DEBUG +''' You can override the LOG level from your environment. + For example, if you want to see the DEBUG messages, run: + $ export CATALYST_LOG_LEVEL=10 +''' +LOG_LEVEL = int(os.environ.get('CATALYST_LOG_LEVEL', logbook.INFO)) DATE_TIME_FORMAT = '%Y-%m-%d %H:%M'