summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit-harry <git-harry@live.co.uk>2014-09-18 17:14:19 +0100
committergit-harry <git-harry@live.co.uk>2014-09-18 17:14:19 +0100
commit36dd138aa60f9368841bd25f67b661816a902981 (patch)
treea5a2d43777cf5e3fe210e510327b794d859e5c47
parent4c8464114f5539706cffc6888ce007d0d3ceba16 (diff)
downloadpython-cinderclient-36dd138aa60f9368841bd25f67b661816a902981.tar.gz
Enables debug mode for keystone session object
This fixes the lack of debug messages introduced by commit 84af49c. Change-Id: I7bf3e98c21f09bd4f3c2d5d3bc372f60d717c9d5 Closes-bug: #1370152
-rw-r--r--cinderclient/shell.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cinderclient/shell.py b/cinderclient/shell.py
index 83242f3..04dfe71 100644
--- a/cinderclient/shell.py
+++ b/cinderclient/shell.py
@@ -486,6 +486,9 @@ class OpenStackCinderShell(object):
client_logger.addHandler(ch)
if hasattr(requests, 'logging'):
requests.logging.getLogger(requests.__name__).addHandler(ch)
+ # required for logging when using a keystone session
+ ks_logger = logging.getLogger("keystoneclient")
+ ks_logger.setLevel(logging.DEBUG)
def main(self, argv):