[Common] Use log.warning instead of error for download failure
This commit is contained in:
parent
e408dc14cc
commit
fef160e7a7
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user