aboutsummaryrefslogtreecommitdiffstats
path: root/utils/functest_logger.py
diff options
context:
space:
mode:
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 5639ed80..b9b30871 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)