ENH: DEBUG level can be easily overriden from the local environment

This commit is contained in:
Victor Grau Serrat
2017-11-27 15:02:13 -07:00
parent c6fe45371c
commit 12d5915c8e
+6 -1
View File
@@ -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'