From 19051faef262583f8f17be20fda277b0ca75dd8b Mon Sep 17 00:00:00 2001 From: David Stainton Date: Wed, 15 Jul 2015 12:18:05 -0700 Subject: [PATCH] better handle download failures --- src/allmydata/frontends/magic_folder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.45.2