Fix #78 - load files from different server

This commit is contained in:
Hugvey Central Command 2019-11-15 17:37:43 +01:00
parent bb7020288d
commit 654752bf42

View file

@ -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: