fix to reviewer comment: add check if logging disabled

This commit is contained in:
Kirill Shileev 2011-05-25 17:10:53 +04:00
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'):