response might carry binary data, use repr() in network2 logging

This commit is contained in:
Jakub Warmuz 2015-05-19 19:21:04 +00:00
parent c0acf8239d
commit 2cadfdaae1
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -139,7 +139,7 @@ class Network(object):
response = requests.post(uri, data=data, **kwargs)
except requests.exceptions.RequestException as error:
raise errors.NetworkError(error)
logging.debug('Received response %s: %s', response, response.text)
logging.debug('Received response %s: %r', response, response.text)
self._check_response(response, content_type=content_type)
return response