aboutsummaryrefslogtreecommitdiffstats
path: root/utils/functest_logger.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-25 18:08:22 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-04-27 15:34:56 +0200
commit9c13968cdb32806da738dc520d45270e019f0ad3 (patch)
tree50eb0e0889dc72a1ce4dec0da60607c834d91fc0 /utils/functest_logger.py
parent790fa04f4503dbf60123bf9414db131580f2c45a (diff)
Create prepare_env.py from prepare_env.sh and config_functest.py
JIRA: FUNCTEST-227 Change-Id: I1aa890b9f91ec524c766ba3c460666ed227f2126 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'utils/functest_logger.py')
-rw-r--r--utils/functest_logger.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/functest_logger.py b/utils/functest_logger.py
index 5639ed809..b9b308710 100644
--- a/utils/functest_logger.py
+++ b/utils/functest_logger.py
@@ -38,10 +38,10 @@ class Logger:
CI_DEBUG = os.getenv('CI_DEBUG')
- if CI_DEBUG.lower() == "true":
+ ch.setLevel(logging.INFO)
+
+ if CI_DEBUG is not None and CI_DEBUG.lower() == "true":
ch.setLevel(logging.DEBUG)
- else:
- ch.setLevel(logging.INFO)
self.logger.addHandler(ch)