Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Ignore certain modules for logging"
[functest.git]
/
functest
/
utils
/
functest_logger.py
diff --git
a/functest/utils/functest_logger.py
b/functest/utils/functest_logger.py
old mode 100755
(executable)
new mode 100644
(file)
index
6dc46ef
..
555e9c2
--- a/
functest/utils/functest_logger.py
+++ b/
functest/utils/functest_logger.py
@@
-28,13
+28,24
@@
import json
from functest.utils.constants import CONST
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:
+
+class Logger(object):
def __init__(self, logger_name):
self.setup_logging()
self.logger = logging.getLogger(logger_name)
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
def getLogger(self):
return self.logger