]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add temporary debug prints.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 20 Apr 2015 16:57:26 +0000 (17:57 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 20 Apr 2015 16:57:26 +0000 (17:57 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py
src/allmydata/test/test_drop_upload.py

index 3affc7e46b2c0cb0643d990adfae7526ba287bbf..720242380647d84fae9396331ef177a1484451b1 100644 (file)
@@ -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)
index e376b78e2d57f5bd4cf513ddab7da4d8fcdbf20b..cc426c3741dfa5d4b53e947499eb894d7a707d0b 100644 (file)
@@ -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))