Commit 0aac3db1 authored by Vincent Pelletier's avatar Vincent Pelletier

Add logs when committing/aborting, when query logging is enabled.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1936 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 141ae33d
...@@ -74,9 +74,13 @@ class MySQLDatabaseManager(DatabaseManager): ...@@ -74,9 +74,13 @@ class MySQLDatabaseManager(DatabaseManager):
self.query("""BEGIN""") self.query("""BEGIN""")
def _commit(self): def _commit(self):
if LOG_QUERIES:
logging.debug('committing...')
self.conn.commit() self.conn.commit()
def _rollback(self): def _rollback(self):
if LOG_QUERIES:
logging.debug('aborting...')
self.conn.rollback() self.conn.rollback()
def query(self, query): def query(self, query):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment