From: Cédric Ollivier Date: Wed, 17 May 2017 22:46:45 +0000 (+0200) Subject: Fix 2 issues related to logger in pytest_suite_runer.py X-Git-Tag: opnfv-5.0.RC1~387^2~3 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=08cb7e1e62d1485f3430a1e1e027c9c6d4e9f94a;p=functest.git Fix 2 issues related to logger in pytest_suite_runer.py logging.ini requires the full name otherwise all log messages are lost. Calling basicConfig() is useless as it has been correctly configured by run_tests.py before. Change-Id: I03663c01f795b1b844239a9e24379faa529829aa Signed-off-by: Cédric Ollivier --- diff --git a/functest/core/pytest_suite_runner.py b/functest/core/pytest_suite_runner.py index 9d787359e..0dd860d26 100644 --- a/functest/core/pytest_suite_runner.py +++ b/functest/core/pytest_suite_runner.py @@ -13,8 +13,6 @@ import time from functest.core import testcase -logging.basicConfig() - class PyTestSuiteRunner(testcase.TestCase): """ @@ -23,8 +21,8 @@ class PyTestSuiteRunner(testcase.TestCase): """ def __init__(self, **kwargs): super(PyTestSuiteRunner, self).__init__(**kwargs) - self.logger = logging.getLogger(self.__class__.__name__) self.suite = None + self.logger = logging.getLogger(__name__) def run(self, **kwargs): """