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/?a=commitdiff_plain;h=30a4c9e115881fac4d56a049c93ddad38aa6620b;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 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))