Fix logger name in vping_base.py 97/36997/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 5 Jul 2017 18:44:37 +0000 (20:44 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 6 Jul 2017 05:47:19 +0000 (07:47 +0200)
It conforms with logging.ini which requires qualnames.

Change-Id: Ic2f849009c31a3a7bc406fc44c4917d19ccf2424
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/opnfv_tests/openstack/vping/vping_base.py

index 00dda73..74fbce1 100644 (file)
@@ -38,7 +38,7 @@ class VPingBase(testcase.TestCase):
         # to be required for mock and the unit tests will fail without it
         os.environ
 
-        self.logger = logging.getLogger(self.__class__.__name__)
+        self.logger = logging.getLogger(__name__)
 
         if 'os_creds' in kwargs:
             self.os_creds = kwargs['os_creds']