log HTTP errors as warnings

This commit is contained in:
Mike Fährmann
2018-01-29 21:55:46 +01:00
parent db7f04dd97
commit 915807dd77

View File

@@ -63,7 +63,7 @@ class DownloaderBase():
while True: while True:
self.reset() self.reset()
if tries: if tries:
self.log.error("%s (%d/%d)", msg, tries, self.retries) self.log.warning("%s (%d/%d)", msg, tries, self.retries)
if tries >= self.retries: if tries >= self.retries:
return False return False
time.sleep(tries) time.sleep(tries)
@@ -81,7 +81,7 @@ class DownloaderBase():
except exception.DownloadComplete: except exception.DownloadComplete:
break break
except Exception as exc: except Exception as exc:
self.log.error(exc) self.log.warning(exc)
return False return False
# check response # check response