aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/tests/functest/sfc_symmetric_chain.py
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-05-03 16:25:25 +0200
committerManuel Buil <mbuil@suse.com>2018-05-03 17:02:14 +0200
commit93e61b0ab4a09c3f4af626489127b02603dc84a7 (patch)
tree14cfe09ff51003e80eff1c021b3c5d8a71d78696 /sfc/tests/functest/sfc_symmetric_chain.py
parentca1822cf020f1bc0ac2dedb037cdea555859d4e8 (diff)
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 <mbuil@suse.com>
Diffstat (limited to 'sfc/tests/functest/sfc_symmetric_chain.py')
-rw-r--r--sfc/tests/functest/sfc_symmetric_chain.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/sfc/tests/functest/sfc_symmetric_chain.py b/sfc/tests/functest/sfc_symmetric_chain.py
index 43599d62..aa30e011 100644
--- a/sfc/tests/functest/sfc_symmetric_chain.py
+++ b/sfc/tests/functest/sfc_symmetric_chain.py
@@ -12,20 +12,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
-from opnfv.deployment.factory import Factory as DeploymentFactory
-
import sfc.lib.config as sfc_config
import sfc.lib.test_utils as test_utils
-from sfc.lib.results import Results
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
-logger = logging.getLogger(__name__)
+""" logging configuration """
+logger = logger.Logger(__name__).getLogger()
CLIENT = "client"
SERVER = "server"
@@ -330,5 +329,4 @@ def wait_for_classification_rules(ovs_logger, compute_nodes,
if __name__ == '__main__':
- logging.config.fileConfig(COMMON_CONFIG.functest_logging_api)
main()