From 3ce1394e4235c8b1fd90df0b699209f337fbb8e1 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 20 Apr 2015 17:57:26 +0100 Subject: [PATCH] Add temporary debug prints. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/drop_upload.py | 1 + src/allmydata/test/test_drop_upload.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 61668b00..84d1b9b8 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -203,6 +203,7 @@ class DropUploader(service.MultiService): return self._parent.create_subdirectory(name) def _maybe_upload(val): + print "in _maybe_upload" if not os.path.exists(path): self._log("uploader: not uploading non-existent file.") self._stats_provider.count('drop_upload.objects_disappeared', 1) diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index 3072e1b0..3bc2b167 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -100,6 +100,9 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA self.notify_close_write(tree_dir_fp) return d2 d.addCallback(testMoveEmptyTree) + def _print(ign): + print "in _print" + d.addCallback(_print) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.objects_uploaded'), 1)) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.files_uploaded'), 0)) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.objects_queued'), 0)) -- 2.45.2