From 93e61b0ab4a09c3f4af626489127b02603dc84a7 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/sfc_one_chain_two_service_functions.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sfc/tests/functest/sfc_one_chain_two_service_functions.py') diff --git a/sfc/tests/functest/sfc_one_chain_two_service_functions.py b/sfc/tests/functest/sfc_one_chain_two_service_functions.py index 07f7814c..ae70814a 100644 --- a/sfc/tests/functest/sfc_one_chain_two_service_functions.py +++ b/sfc/tests/functest/sfc_one_chain_two_service_functions.py @@ -10,20 +10,19 @@ import os import sys import threading -import logging - import sfc.lib.openstack_utils as os_sfc_utils import sfc.lib.odl_utils as odl_utils import opnfv.utils.ovs_logger as ovs_log - import sfc.lib.config as sfc_config import sfc.lib.test_utils as test_utils +import sfc.lib.topology_shuffler as topo_shuffler + +from opnfv.utils import opnfv_logger as logger from sfc.lib.results import Results from opnfv.deployment.factory import Factory as DeploymentFactory -import sfc.lib.topology_shuffler as topo_shuffler """ logging configuration """ -logger = logging.getLogger(__name__) +logger = logger.Logger(__name__).getLogger() CLIENT = "client" SERVER = "server" @@ -282,5 +281,4 @@ def main(): if __name__ == '__main__': - logging.config.fileConfig(COMMON_CONFIG.functest_logging_api) main() -- cgit 1.2.3-korg