From 12d5915c8ee3503770c387b0b6d623e53aef4915 Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Mon, 27 Nov 2017 15:02:13 -0700 Subject: [PATCH] ENH: DEBUG level can be easily overriden from the local environment --- catalyst/constants.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'