aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils/functest_logger.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-03-23 13:39:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-23 13:39:56 +0000
commita434c3fefdf075cb6be44b964b64fc12db1cb8d5 (patch)
tree2feb28421915c11a91413ff346abdb22fa141945 /functest/utils/functest_logger.py
parentbf8345a941ca568eacdb14a8b0487e5d6e68f5b9 (diff)
parentd6f4f25e6269a23120b37f58178164740f1cf0e9 (diff)
Merge "Ignore certain modules for logging"
Diffstat (limited to 'functest/utils/functest_logger.py')
-rw-r--r--functest/utils/functest_logger.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/functest/utils/functest_logger.py b/functest/utils/functest_logger.py
index 022211cb..555e9c28 100644
--- 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