diff options
| author | git-harry <git-harry@live.co.uk> | 2014-09-18 17:14:19 +0100 |
|---|---|---|
| committer | git-harry <git-harry@live.co.uk> | 2014-09-18 17:14:19 +0100 |
| commit | 36dd138aa60f9368841bd25f67b661816a902981 (patch) | |
| tree | a5a2d43777cf5e3fe210e510327b794d859e5c47 /cinderclient/shell.py | |
| parent | 4c8464114f5539706cffc6888ce007d0d3ceba16 (diff) | |
| download | python-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
Diffstat (limited to 'cinderclient/shell.py')
| -rw-r--r-- | cinderclient/shell.py | 3 |
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): |
