summaryrefslogtreecommitdiffstats
path: root/dovetail/utils/dovetail_logger.py
diff options
context:
space:
mode:
authorzshi <zshi@redhat.com>2016-11-28 11:00:35 +0800
committerzshi <zshi@redhat.com>2016-11-28 11:00:35 +0800
commit3cff5221e332c83d143a7150217513ca7f3e1ed1 (patch)
treebb934cd3a1ada9ee69dc7d27990cd0598468dcf3 /dovetail/utils/dovetail_logger.py
parent042dcda01c51493eda99b7a835cdbd59c1ae12b0 (diff)
dovetail tool: change CI_DEBUG to DEBUG
JIRA: DOVETAIL-42 1) change 'CI_DEBUG' to 'DEBUG' in cmd_config.yml and dovetail_logger.py 2) assign 'DEBUG' env value to 'CI_DEBUG' when updating functest and yardstick parameter 'envs' Change-Id: I6d6130e394fddf11d83be619f2c9684bf8c859f9 Signed-off-by: zshi <zshi@redhat.com>
Diffstat (limited to 'dovetail/utils/dovetail_logger.py')
-rw-r--r--dovetail/utils/dovetail_logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dovetail/utils/dovetail_logger.py b/dovetail/utils/dovetail_logger.py
index 6a2d38d5..e725e612 100644
--- a/dovetail/utils/dovetail_logger.py
+++ b/dovetail/utils/dovetail_logger.py
@@ -40,7 +40,7 @@ clean_results_dir()
class Logger:
def __init__(self, logger_name):
- CI_DEBUG = os.getenv('CI_DEBUG')
+ DEBUG = os.getenv('DEBUG')
self.logger = logging.getLogger(logger_name)
self.logger.propagate = 0
@@ -50,7 +50,7 @@ class Logger:
formatter = logging.Formatter('%(asctime)s - %(name)s - '
'%(levelname)s - %(message)s')
ch.setFormatter(formatter)
- if CI_DEBUG is not None and CI_DEBUG.lower() == "true":
+ if DEBUG is not None and DEBUG.lower() == "true":
ch.setLevel(logging.DEBUG)
else:
ch.setLevel(logging.INFO)