diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2017-03-21 17:50:25 +0100 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2017-03-22 23:22:56 +0000 |
commit | d6f4f25e6269a23120b37f58178164740f1cf0e9 (patch) | |
tree | 850758646d299aaa2aa6bd01e3923b1d6c5429bc /functest/utils/functest_logger.py | |
parent | e4e3691bf1820193c29aaa6709cf81bf1e2e32cc (diff) |
Ignore certain modules for logging
Some modules are logged to functest.log or the console
and are not relevant for us since they are already
in the openstack logs.
This causes a huge log which makes it unreadable.
Change-Id: I3f0fb83e2080e41cd5bf815f8448f5bc25e3464a
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'functest/utils/functest_logger.py')
-rwxr-xr-x | functest/utils/functest_logger.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/functest/utils/functest_logger.py b/functest/utils/functest_logger.py index 022211cb..555e9c28 100755 --- a/functest/utils/functest_logger.py +++ b/functest/utils/functest_logger.py @@ -28,13 +28,24 @@ import json from functest.utils.constants import CONST +ignore = ["paramiko", + "stevedore.extension", + "keystoneauth.session", + "keystoneauth.identity.v3.base", + "novaclient.v2.client", + "neutronclient.v2_0.client", + "glanceclient.common.http", + "cinderclient.v2.client", + "cinderclient.client"] + class Logger(object): def __init__(self, logger_name): self.setup_logging() self.logger = logging.getLogger(logger_name) - logging.getLogger("paramiko").setLevel(logging.WARNING) + for module_name in ignore: + logging.getLogger(module_name).setLevel(logging.WARNING) def getLogger(self): return self.logger |