summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-05-15 09:07:53 +0000
committerLinda Wang <wangwulin@huawei.com>2017-05-15 09:07:53 +0000
commitd44958177833bfebb9a168fb511c07261930ea1e (patch)
tree080772fefef0a01e7ed7068c27a3a814e940bba4
parent1fd3cba27f960f7ed10968afb437eaa412bda82b (diff)
Update logger in netready via logging.getLogger()
1. The module functest.utils.functest_logger has been deleted and logger has been reconfigured in functest [1]. 2. Update gluon-test-suite.py to get logger via logging.getLogger(). [1] https://gerrit.opnfv.org/gerrit/#/c/34019/ JIRA: FUNCTEST-824 Change-Id: If7254171bf1146dc7f5a0792705cecf2e84d15c5 Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rwxr-xr-xtest/functest/gluon-test-suite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functest/gluon-test-suite.py b/test/functest/gluon-test-suite.py
index e262ced..b712f8f 100755
--- a/test/functest/gluon-test-suite.py
+++ b/test/functest/gluon-test-suite.py
@@ -10,7 +10,6 @@
#
from opnfv.deployment import factory
import functest.utils.openstack_utils as osutils
-import functest.utils.functest_logger as ft_logger
from functest.utils.constants import CONST
import json
@@ -19,7 +18,7 @@ import os
import sys
import time
-logger = ft_logger.Logger('netready-gluon-vping').getLogger()
+logger = logging.getLogger('netready-gluon-vping')
logger.setLevel(logging.DEBUG)
@@ -350,4 +349,5 @@ def main():
if __name__ == '__main__':
+ logging.basicConfig()
sys.exit(main())