]> 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>
Tue, 28 Apr 2015 18:45:15 +0000 (19:45 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py
src/allmydata/test/test_drop_upload.py

index 61668b00a240ab69eff98cc93fdbeca3fd708277..84d1b9b83f46843e802341815d597bd29c7bf9c6 100644 (file)
@@ -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)
index 3072e1b06df14bfab7ea3d01bde10b837ee0eca3..3bc2b1672c7195aa2e5fb83743a2e7ee5b80c50c 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))