[debug] cnx commit/rollback on DBG_RQL
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 11 Aug 2009 17:04:59 +0200
changeset 2767 58c519e5a31f
parent 2766 07e47b84acc2
child 2771 8074dd88e21b
child 2772 33f71848f7a7
child 2773 b2530e3e0afb
[debug] cnx commit/rollback on DBG_RQL
server/sources/extlite.py
--- a/server/sources/extlite.py	Tue Aug 11 17:04:22 2009 +0200
+++ b/server/sources/extlite.py	Tue Aug 11 17:04:59 2009 +0200
@@ -36,13 +36,13 @@
 
     def commit(self):
         if self._cnx is not None:
-            if server.DEBUG & server.DBG_SQL:
+            if server.DEBUG & (server.DBG_SQL | server.DBG_RQL):
                 print 'sql cnx COMMIT', self._cnx
             self._cnx.commit()
 
     def rollback(self):
         if self._cnx is not None:
-            if server.DEBUG & server.DBG_SQL:
+            if server.DEBUG & (server.DBG_SQL | server.DBG_RQL):
                 print 'sql cnx ROLLBACK', self._cnx
             self._cnx.rollback()