mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
network2: Log GET/POST uri
This commit is contained in:
parent
1ada2cab15
commit
c0acf8239d
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue