From 059613f1759e2f86d4d3ecda1680105b720d2197 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 3 May 2018 16:25:25 +0200 Subject: Bug fix: Use opnfv.logger object JIRA: SFC-125 If we don't use the opnfv.logger from functest, logs are not printed when exeucting tests through the functest framework Change-Id: I6d58ff3977fd94221720eea978e0efde07a576a2 Signed-off-by: Manuel Buil --- sfc/tests/functest/run_sfc_tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sfc/tests/functest/run_sfc_tests.py') diff --git a/sfc/tests/functest/run_sfc_tests.py b/sfc/tests/functest/run_sfc_tests.py index 64c5b385..dba73b98 100644 --- a/sfc/tests/functest/run_sfc_tests.py +++ b/sfc/tests/functest/run_sfc_tests.py @@ -16,15 +16,15 @@ import sys from xtesting.core import testcase from opnfv.utils import ovs_logger as ovs_log +from opnfv.utils import opnfv_logger as logger from opnfv.deployment.factory import Factory as DeploymentFactory from sfc.lib import cleanup as sfc_cleanup from sfc.lib import config as sfc_config from sfc.lib import odl_utils as odl_utils from collections import OrderedDict -import logging -logger = logging.getLogger(__name__) +logger = logger.Logger(__name__).getLogger() COMMON_CONFIG = sfc_config.CommonConfig() @@ -188,6 +188,5 @@ class SfcFunctest(testcase.TestCase): def main(): - logging.basicConfig(level=logging.INFO) SFC = SfcFunctest() sys.exit(SFC.run()) -- cgit 1.2.3-korg