mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
[Common] Use log.warning instead of error for download failure
This commit is contained in:
parent
e408dc14cc
commit
fef160e7a7
1 changed files with 3 additions and 3 deletions
|
@ -252,9 +252,9 @@ def download_file(url, filename, callback=None, headers=None, force_filename=Fal
|
|||
allow_compression=allow_compression)
|
||||
result.addCallbacks(on_download_success, on_download_fail)
|
||||
else:
|
||||
# Log the error and pass the failure to the caller
|
||||
log.error("Error occurred downloading torrent from '%s': %s",
|
||||
url, failure.getErrorMessage())
|
||||
# Log the failure and pass to the caller
|
||||
log.warning("Error occurred downloading file from '%s': %s",
|
||||
url, failure.getErrorMessage())
|
||||
result = failure
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue