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/module-simplejson.tests.html?a=commitdiff_plain;h=e61b5a892047f573c1fd2bc6d36c566d15d6716b;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)