From: David Stainton Date: Wed, 15 Jul 2015 19:18:05 +0000 (-0700) Subject: better handle download failures X-Git-Url: https://git.rkrishnan.org/specifications/%5B/%5D%20//%22%22?a=commitdiff_plain;h=0118c5105b0353880e3cbb5e25020dc529a88dc9;p=tahoe-lafs%2Ftahoe-lafs.git better handle download failures --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 31407a64..9e83c3f1 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -215,7 +215,9 @@ class MagicFolder(service.MultiService): self._stats_provider.count('magic_folder.objects_downloaded', 1) return None def failed(f): - return Failure("download failed") + self._log("download failed") + self._stats_provider.count('magic_folder.objects_download_failed', 1) + return f def remove_from_pending(result): self._download_pending = self._download_pending.difference(set([name])) d.addCallbacks(succeeded, failed)