diff options
author | Panagiotis Karalis <pkaralis@intracom-telecom.com> | 2018-05-25 11:53:57 +0300 |
---|---|---|
committer | Panagiotis Karalis <pkaralis@intracom-telecom.com> | 2018-06-01 14:25:07 +0300 |
commit | 1ec06237327293d18c494a915faed756188447b0 (patch) | |
tree | bc0a3ff2a4461fb41639fb637a9b1affb227d2eb /sfc/tests/functest/run_sfc_tests.py | |
parent | f21e55e683f446596565caba8cf86fa15e048fd0 (diff) |
Fix the logging to be compatible with functest
In order to collect logs from SFC test scenarios running through
functest framework (mainly for troubleshooting purposes),
the logging mechanism has been updated accordingly.
JIRA: SFC-125
Change-Id: Ide7c32519afa6ece299d0ac1dcb168609a2e3945
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to 'sfc/tests/functest/run_sfc_tests.py')
-rw-r--r-- | sfc/tests/functest/run_sfc_tests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfc/tests/functest/run_sfc_tests.py b/sfc/tests/functest/run_sfc_tests.py index 015255a6..7c0b9d15 100644 --- a/sfc/tests/functest/run_sfc_tests.py +++ b/sfc/tests/functest/run_sfc_tests.py @@ -11,20 +11,19 @@ import importlib import os import time -import yaml +import logging import sys +import yaml -from xtesting.core import testcase +from collections import OrderedDict 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 xtesting.core import testcase -from collections import OrderedDict - -logger = logger.Logger(__name__).getLogger() +logger = logging.getLogger(__name__) COMMON_CONFIG = sfc_config.CommonConfig() @@ -196,5 +195,6 @@ class SfcFunctest(testcase.TestCase): def main(): + logging.basicConfig(level=logging.INFO) SFC = SfcFunctest() sys.exit(SFC.run()) |