mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
download: DownloadStopped isn't SCARY, lower the log severity
This commit is contained in:
parent
944f8babec
commit
7385ddaf30
@ -110,7 +110,12 @@ class Output:
|
||||
|
||||
def fail(self, why):
|
||||
# this is really unusual, and deserves maximum forensics
|
||||
self.log("download failed!", failure=why, level=log.SCARY)
|
||||
if why.check(DownloadStopped):
|
||||
# except DownloadStopped just means the consumer aborted the
|
||||
# download, not so scary
|
||||
self.log("download stopped", level=log.UNUSUAL)
|
||||
else:
|
||||
self.log("download failed!", failure=why, level=log.SCARY)
|
||||
self.downloadable.fail(why)
|
||||
|
||||
def close(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user