Commit 4a911356 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Display more informations about transactions in storage log().

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2155 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fea037dc
...@@ -284,8 +284,9 @@ class TransactionManager(object): ...@@ -284,8 +284,9 @@ class TransactionManager(object):
return oid in self._load_lock_dict return oid in self._load_lock_dict
def log(self): def log(self):
logging.info("Transactions: %r", logging.info("Transactions:")
[dump(x) for x in self._transaction_dict.keys()]) for txn in self._transaction_dict.values():
logging.info(' %r', txn)
logging.info(' Read locks:') logging.info(' Read locks:')
for oid, tid in self._load_lock_dict.items(): for oid, tid in self._load_lock_dict.items():
logging.info(' %r by %r', dump(oid), dump(tid)) logging.info(' %r by %r', dump(oid), dump(tid))
......
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