]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
More debug prints.
authorDaira Hopwood <daira@jacaranda.org>
Wed, 19 Aug 2015 14:32:52 +0000 (15:32 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:47 +0000 (01:19 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/backupdb.py
src/allmydata/test/test_magic_folder.py

index 0b351c5490dfaf79591b51dbc7ace7817fbce612..20c0d950162ae54818a41b16772ea3fa1a8f0339 100644 (file)
@@ -398,9 +398,11 @@ class MagicFolderDB(BackupDB):
                                 " WHERE fileid=?",
                                 (now, now, fileid))
         try:
+            print "here1!!!1"
             self.cursor.execute("INSERT INTO local_files VALUES (?,?,?,?,?,?)",
                                 (path, size, mtime, ctime, fileid, version))
         except (self.sqlite_module.IntegrityError, self.sqlite_module.OperationalError):
+            print "here2!!!2"
             self.cursor.execute("UPDATE local_files"
                                 " SET size=?, mtime=?, ctime=?, fileid=?, version=?"
                                 " WHERE path=?",
index 510dee1a397d0fbc4507bd47084bb3abcaa3ccf2..588a595c9c5b8439e28e921f01b8da76e6ef7136 100644 (file)
@@ -330,6 +330,8 @@ class MagicFolderTestMixin(MagicFolderTestMixin, ShouldFailMixin, ReallyEqualMix
         def get_results(result):
             # XXX
             self.alice_collective_dir, self.alice_upload_dircap, self.alice_magicfolder, self.bob_collective_dircap, self.bob_upload_dircap, self.bob_magicfolder = result
+            print "Alice magicfolderdb is at %r" % (self.alice_magicfolder._client.basedir)
+            print "Bob   magicfolderdb is at %r" % (self.bob_magicfolder._client.basedir)
         d.addCallback(get_results)
 
         def Alice_write_a_file(result):