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/vdrive/%22file:/somewhere?a=commitdiff_plain;h=da29e3485691d96c8c6aaf595a3f4c57f8db1655;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)