From: Daira Hopwood Date: Mon, 20 Apr 2015 16:57:26 +0000 (+0100) Subject: Add temporary debug prints. X-Git-Url: https://git.rkrishnan.org/frontends/configuration.rst?a=commitdiff_plain;h=3ce1394e4235c8b1fd90df0b699209f337fbb8e1;p=tahoe-lafs%2Ftahoe-lafs.git Add temporary debug prints. Signed-off-by: Daira Hopwood --- 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))