network2: Log GET/POST uri

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

View file

@ -115,6 +115,7 @@ class Network(object):
:rtype: `requests.Response`
"""
logging.debug('Sending GET request to %s', uri)
try:
response = requests.get(uri, **kwargs)
except requests.exceptions.RequestException as error:
@ -133,7 +134,7 @@ class Network(object):
:rtype: `requests.Response`
"""
logging.debug('Sending POST data: %s', data)
logging.debug('Sending POST data to %s: %s', uri, data)
try:
response = requests.post(uri, data=data, **kwargs)
except requests.exceptions.RequestException as error: