From 7385ddaf304b5947c8954b52ffc5946d541ce55c Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Tue, 15 Apr 2008 16:06:09 -0700
Subject: [PATCH] download: DownloadStopped isn't SCARY, lower the log severity

---
 src/allmydata/download.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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):
-- 
2.45.2