diff options
author | Manuel Buil <mbuil@suse.com> | 2018-05-03 16:25:25 +0200 |
---|---|---|
committer | Manuel Buil <mbuil@suse.com> | 2018-05-08 08:02:43 +0000 |
commit | 059613f1759e2f86d4d3ecda1680105b720d2197 (patch) | |
tree | 07e3c68166a2dc6aa8d5446a9d06668f0071414f /sfc/tests/functest/sfc_chain_deletion.py | |
parent | 3f77ff56f24660500cec13f0953d462ea2cd4948 (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_chain_deletion.py')
-rw-r--r-- | sfc/tests/functest/sfc_chain_deletion.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sfc/tests/functest/sfc_chain_deletion.py b/sfc/tests/functest/sfc_chain_deletion.py index 9fde460f..c1d5d335 100644 --- a/sfc/tests/functest/sfc_chain_deletion.py +++ b/sfc/tests/functest/sfc_chain_deletion.py @@ -11,20 +11,18 @@ 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.topology_shuffler as topo_shuffler import sfc.lib.config as sfc_config import sfc.lib.test_utils as test_utils + +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 - -logger = logging.getLogger(__name__) +logger = logger.Logger(__name__).getLogger() CLIENT = "client" SERVER = "server" @@ -264,5 +262,4 @@ def main(): if __name__ == '__main__': - logging.config.fileConfig(COMMON_CONFIG.functest_logging_api) main() |