Fix typo breaking --debug option to cinder client
Fixes LP bug #1130730 Change-Id: Ia105e8a561b8d45c60e9a3c6ed46a953cc6df96f
This commit is contained in:
@@ -75,7 +75,7 @@ class HTTPClient(object):
|
|||||||
ch = logging.StreamHandler()
|
ch = logging.StreamHandler()
|
||||||
self._logger.setLevel(logging.DEBUG)
|
self._logger.setLevel(logging.DEBUG)
|
||||||
self._logger.addHandler(ch)
|
self._logger.addHandler(ch)
|
||||||
if hasattr(requests, logging):
|
if hasattr(requests, 'logging'):
|
||||||
requests.logging.getLogger(requests.__name__).addHandler(ch)
|
requests.logging.getLogger(requests.__name__).addHandler(ch)
|
||||||
|
|
||||||
def http_log_req(self, args, kwargs):
|
def http_log_req(self, args, kwargs):
|
||||||
|
Reference in New Issue
Block a user