]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Remove debug prints in backupdb.py.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 24 Aug 2015 16:53:13 +0000 (17:53 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 30 Sep 2015 15:45:25 +0000 (16:45 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/backupdb.py

index f575c66fea53e3cc43e6ae89b14232d48284c71b..7ec3881c5f63b54cf43ebc3b70c153b256c02a57 100644 (file)
@@ -378,17 +378,15 @@ class MagicFolderDB(BackupDB):
                   " WHERE path=?",
                   (path,))
         row = self.cursor.fetchone()
-        print "row = %r" % (row,)
         if not row:
             return None
         else:
             return row[0]
 
     def did_upload_file(self, filecap, path, version, mtime, ctime, size):
-        print "_did_upload_file(%r, %r, %r, %r, %r, %r)" % (filecap, path, version, mtime, ctime, size)
+        #print "_did_upload_file(%r, %r, %r, %r, %r, %r)" % (filecap, path, version, mtime, ctime, size)
         now = time.time()
         fileid = self.get_or_allocate_fileid_for_cap(filecap)
-        print "fileid = %r" % (fileid,)
         try:
             self.cursor.execute("INSERT INTO last_upload VALUES (?,?,?)",
                                 (fileid, now, now))
@@ -398,11 +396,9 @@ 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=?",