diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-01-10 17:07:12 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-01-10 17:07:12 +0000 |
| commit | 6ad05112f47cee2f2f5e8310dc9e05de33263b0c (patch) | |
| tree | 97832d730516b6ae60ba1380b0a4c3e18392f969 /openstackclient/volume/client.py | |
| parent | e821a6b97fcc5484ceae3f228f851be30a26ed76 (diff) | |
| parent | a5e087e7a9b88e2ce698ddc32d89e1462509fbb5 (diff) | |
| download | python-openstackclient-6ad05112f47cee2f2f5e8310dc9e05de33263b0c.tar.gz | |
Merge "Displaying curl commands for nova and cinder calls"
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 |
