Show the timeout (useful to see this when debugging)
This commit is contained in:
@@ -85,8 +85,8 @@ def readurl(url, data=None, timeout=None,
|
|||||||
attempts = retries + 1
|
attempts = retries + 1
|
||||||
|
|
||||||
excepts = []
|
excepts = []
|
||||||
LOG.info(("Attempting to open %s with %s attempts"
|
LOG.info(("Attempting to open '%s' with %s attempts"
|
||||||
" (%s retries) to be performed"), url, attempts, retries)
|
" (%s retries, timeout=%s) to be performed"), url, attempts, retries, timeout)
|
||||||
open_args = {}
|
open_args = {}
|
||||||
if timeout is not None:
|
if timeout is not None:
|
||||||
open_args['timeout'] = int(timeout)
|
open_args['timeout'] = int(timeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user