Fix #78 - load files from different server
This commit is contained in:
parent
bb7020288d
commit
654752bf42
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ class CommandHandler(object):
|
||||||
#: var response: http.client.HTTPResponse
|
#: var response: http.client.HTTPResponse
|
||||||
response = urllib.request.urlopen(file, timeout=4)
|
response = urllib.request.urlopen(file, timeout=4)
|
||||||
fetchend = time.time()
|
fetchend = time.time()
|
||||||
logger.info("Fetched {} in {}s".format(file, fetchend-start))
|
logger.info("Fetched {} in {:.4f}s".format(file, fetchend-start))
|
||||||
if fetchend-start > 1:
|
if fetchend-start > 1:
|
||||||
logger.warning("Super slow fetching of {} in {}s".format(file, fetchend-start))
|
logger.warning("Super slow fetching of {} in {}s".format(file, fetchend-start))
|
||||||
if response.getcode() != 200:
|
if response.getcode() != 200:
|
||||||
|
|
Loading…
Reference in a new issue