From 30a4c9e115881fac4d56a049c93ddad38aa6620b 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 3affc7e4..72024238 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -198,6 +198,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 e376b78e..cc426c37 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