From fc14b471752ad8ac850fdc1e4128fafefd06f26b Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Wed, 19 Aug 2015 15:32:52 +0100 Subject: [PATCH] More debug prints. Signed-off-by: Daira Hopwood --- src/allmydata/backupdb.py | 2 ++ src/allmydata/test/test_magic_folder.py | 2 ++ 2 files changed, 4 insertions(+) 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): -- 2.45.2