diff options
author | 2017-05-02 20:57:08 +0200 | |
---|---|---|
committer | 2017-05-04 16:15:24 +0200 | |
commit | 3154346cfd22a3d500dc2fd01495e181308d12d6 (patch) | |
tree | 39c029ecba238f1ce17e1742982b83e613f123f0 /functest/opnfv_tests/features/barometer.py | |
parent | a87a5f00e1d32af5b193d0376778c966f1aaab3f (diff) |
Define loggers as class-private members
This mangling ensures that all info messages printed from core packages
are shown in console. It also avoids sphinx to print them.
Change-Id: I07db9f33060c195bce3b48b06a6640eb6c56c2eb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/features/barometer.py')
-rw-r--r-- | functest/opnfv_tests/features/barometer.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/opnfv_tests/features/barometer.py b/functest/opnfv_tests/features/barometer.py index 8a409406..cbfe7d9a 100644 --- a/functest/opnfv_tests/features/barometer.py +++ b/functest/opnfv_tests/features/barometer.py @@ -6,6 +6,8 @@ # # http://www.apache.org/licenses/LICENSE-2.0 +import logging + from baro_tests import collectd import functest.core.feature as base @@ -16,5 +18,7 @@ class BarometerCollectd(base.Feature): Class for executing barometercollectd testcase. ''' + __logger = logging.getLogger(__name__) + def execute(self): - return collectd.main(self.logger) + return collectd.main(self.__logger) |