From 3166fa1355f33a285d1ea5e8404ce4a45c1e1f97 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Wed, 23 Sep 2015 15:37:13 +0100 Subject: [PATCH] Debug prints. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/magic_folder.py | 1 + src/allmydata/test/test_magic_folder.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index d48990c8..d0401ae9 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -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) diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 4abfd07c..ee2e44e3 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -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) -- 2.45.2