]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Debug prints.
authorDaira Hopwood <daira@jacaranda.org>
Wed, 23 Sep 2015 14:37:13 +0000 (15:37 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 30 Sep 2015 15:45:27 +0000 (16:45 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py
src/allmydata/test/test_magic_folder.py

index d48990c8b9ad79aa152f42274240427804826c0a..d0401ae96e80b7d4b6d4febd8596b1dc32eb5619 100644 (file)
@@ -270,6 +270,7 @@ class Uploader(QueueMixin):
         return defer.succeed(None)
 
     def _process(self, relpath_u):
+        self._log("_process(%r)" % (relpath_u,))
         if relpath_u is None:
             return
         precondition(isinstance(relpath_u, unicode), relpath_u)
index 4abfd07cf8c3f119687c6313381998f51e967725..ee2e44e31e3a60d11592560558fe1e4a1e419feb 100644 (file)
@@ -124,6 +124,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
         d.addCallback(self._restart_client)
 
         def _check_move_empty_tree(res):
+            #print "_check_move_empty_tree"
             self.mkdir_nonascii(empty_tree_dir)
             d2 = self.magicfolder.uploader.set_hook('processed')
             os.rename(empty_tree_dir, new_empty_tree_dir)
@@ -137,6 +138,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
         d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.directories_created'), 1))
 
         def _check_move_small_tree(res):
+            #print "_check_move_small_tree"
             self.mkdir_nonascii(small_tree_dir)
             fileutil.write(abspath_expanduser_unicode(u"what", base=small_tree_dir), "say when")
             d2 = self.magicfolder.uploader.set_hook('processed', ignore_count=1)
@@ -151,6 +153,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
         d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.directories_created'), 2))
 
         def _check_moved_tree_is_watched(res):
+            #print "_check_moved_tree_is_watched"
             d2 = self.magicfolder.uploader.set_hook('processed')
             fileutil.write(abspath_expanduser_unicode(u"another", base=new_small_tree_dir), "file")
             self.notify(to_filepath(abspath_expanduser_unicode(u"another", base=new_small_tree_dir)), self.inotify.IN_CLOSE_WRITE)