dabo Commit
Revision 6194
Date: 2010-11-18 10:43:41 -0800 (Thu, 18 Nov 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6194

Changed:
U   trunk/dabo/db/dbMySQL.py

Log:
We don't need to log the MySQL transaction commands because they'll get logged
by the cursor. I was confused in my debugging because I was seeing duplicate 
messages.


Diff:
Modified: trunk/dabo/db/dbMySQL.py
===================================================================
--- trunk/dabo/db/dbMySQL.py    2010-11-15 01:57:01 UTC (rev 6193)
+++ trunk/dabo/db/dbMySQL.py    2010-11-18 18:43:41 UTC (rev 6194)
@@ -86,21 +86,18 @@
        def beginTransaction(self, cursor):
                """ Begin a SQL transaction."""
                cursor.execute("START TRANSACTION")
-               dabo.dbActivityLog.info("SQL: begin")
                return True
 
 
        def commitTransaction(self, cursor):
                """ Commit a SQL transaction."""
                cursor.execute("COMMIT")
-               dabo.dbActivityLog.info("SQL: commit")
                return True
 
 
        def rollbackTransaction(self, cursor):
                """ Rollback a SQL transaction."""
                cursor.execute("ROLLBACK")
-               dabo.dbActivityLog.info("SQL: rollback")
                return True
 
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to