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