This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
|
||||
class Config:
|
||||
@@ -13,3 +15,9 @@ class Config:
|
||||
|
||||
RELEASE_ID = os.environ.get('RELEASE_ID', 'test')
|
||||
RELEASEMODE = os.environ.get('RELEASEMODE', 'dev')
|
||||
|
||||
LOG_LEVEL = logging.DEBUG if (
|
||||
'--debug' in sys.argv
|
||||
) or (
|
||||
os.environ.get('DEBUG', '0').lower() in ['yes', 'true', '1']
|
||||
) else logging.INFO
|
||||
|
||||
Reference in New Issue
Block a user