fix to reviewer comment: add check if logging disabled
This commit is contained in:
parent
ad292c029a
commit
76a631d2f7
@ -41,6 +41,9 @@ class OpenStackClient(httplib2.Http):
|
||||
self.force_exception_to_status_code = True
|
||||
|
||||
def http_log(self, args, kwargs, resp, body):
|
||||
if not _logger.isEnabledFor(logging.DEBUG):
|
||||
return
|
||||
|
||||
string_parts = ['curl -i']
|
||||
for element in args:
|
||||
if element in ('GET','POST'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user