diff options
| author | Florent Flament <florent.flament-ext@cloudwatt.com> | 2013-12-18 15:07:03 +0000 |
|---|---|---|
| committer | Florent Flament <florent.flament-ext@cloudwatt.com> | 2014-01-02 11:08:53 +0100 |
| commit | a5e087e7a9b88e2ce698ddc32d89e1462509fbb5 (patch) | |
| tree | 223640f85330c5de15b430132125052e42554c56 /openstackclient/volume/client.py | |
| parent | de27c1b455624b6123b26bfdd022d2763c541a25 (diff) | |
| download | python-openstackclient-a5e087e7a9b88e2ce698ddc32d89e1462509fbb5.tar.gz | |
Displaying curl commands for nova and cinder calls
When using the -v option, displays curl equivalent commands and http
messages exchanged with the nova and cinder API servers. Displays the
same messages as those displayed with the --debug option of
python-novaclient and python-cinderclient.
Implements: blueprint curl-commands-in-debugging-messages for nova and
cinder related calls
Change-Id: Ibc8ef79d874334585b81d652b9c7df9e874fffa9
Diffstat (limited to 'openstackclient/volume/client.py')
| -rw-r--r-- | openstackclient/volume/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openstackclient/volume/client.py b/openstackclient/volume/client.py index e04e8cd7..a53203f1 100644 --- a/openstackclient/volume/client.py +++ b/openstackclient/volume/client.py @@ -37,6 +37,10 @@ def make_client(instance): ) LOG.debug('instantiating volume client') + + # Set client http_log_debug to True if verbosity level is high enough + http_log_debug = utils.get_effective_log_level() <= logging.DEBUG + client = volume_client( username=instance._username, api_key=instance._password, @@ -44,6 +48,7 @@ def make_client(instance): auth_url=instance._auth_url, cacert=instance._cacert, insecure=instance._insecure, + http_log_debug=http_log_debug ) return client |
