From: Daira Hopwood Date: Wed, 19 Aug 2015 14:32:52 +0000 (+0100) Subject: More debug prints. X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/using.html?a=commitdiff_plain;h=fc14b471752ad8ac850fdc1e4128fafefd06f26b;p=tahoe-lafs%2Ftahoe-lafs.git More debug prints. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/backupdb.py b/src/allmydata/backupdb.py index 0b351c54..20c0d950 100644 --- a/src/allmydata/backupdb.py +++ b/src/allmydata/backupdb.py @@ -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=?", diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 510dee1a..588a595c 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -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):