[Common] Use log.warning instead of error for download failure

This commit is contained in:
Calum Lind 2016-10-27 22:17:29 +01:00
parent e408dc14cc
commit fef160e7a7

View File

@ -252,9 +252,9 @@ def download_file(url, filename, callback=None, headers=None, force_filename=Fal
allow_compression=allow_compression) allow_compression=allow_compression)
result.addCallbacks(on_download_success, on_download_fail) result.addCallbacks(on_download_success, on_download_fail)
else: else:
# Log the error and pass the failure to the caller # Log the failure and pass to the caller
log.error("Error occurred downloading torrent from '%s': %s", log.warning("Error occurred downloading file from '%s': %s",
url, failure.getErrorMessage()) url, failure.getErrorMessage())
result = failure result = failure
return result return result