Enables debug mode for keystone session object

This fixes the lack of debug messages introduced by commit 84af49c.

Change-Id: I7bf3e98c21f09bd4f3c2d5d3bc372f60d717c9d5
Closes-bug: #1370152
This commit is contained in:
git-harry
2014-09-18 17:14:19 +01:00
parent 4c8464114f
commit 36dd138aa6

View File

@@ -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):