From: Brian Warner Date: Tue, 15 Apr 2008 23:06:09 +0000 (-0700) Subject: download: DownloadStopped isn't SCARY, lower the log severity X-Git-Url: https://git.rkrishnan.org/frontends/provisioning?a=commitdiff_plain;h=7385ddaf304b5947c8954b52ffc5946d541ce55c;p=tahoe-lafs%2Ftahoe-lafs.git download: DownloadStopped isn't SCARY, lower the log severity --- diff --git a/src/allmydata/download.py b/src/allmydata/download.py index 853e946a..2d239522 100644 --- a/src/allmydata/download.py +++ b/src/allmydata/download.py @@ -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):