[Erp5-report] r25713 - /erp5/trunk/products/TIDStorage/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 25 17:35:57 CET 2009


Author: luke
Date: Wed Feb 25 17:35:34 2009
New Revision: 25713

URL: http://svn.erp5.org?rev=25713&view=rev
Log:
 - LOG when monkey patching

Modified:
    erp5/trunk/products/TIDStorage/ZEOClientStorage.py
    erp5/trunk/products/TIDStorage/transaction_transaction.py

Modified: erp5/trunk/products/TIDStorage/ZEOClientStorage.py
URL: http://svn.erp5.org/erp5/trunk/products/TIDStorage/ZEOClientStorage.py?rev=25713&r1=25712&r2=25713&view=diff
==============================================================================
--- erp5/trunk/products/TIDStorage/ZEOClientStorage.py [utf8] (original)
+++ erp5/trunk/products/TIDStorage/ZEOClientStorage.py [utf8] Wed Feb 25 17:35:34 2009
@@ -27,12 +27,15 @@
 ##############################################################################
 
 from ZEO.ClientStorage import ClientStorage
+from zLOG import LOG, WARNING, INFO
 
 LAST_COMMITED_TID_PROPERTY_ID = '_last_commited_tid'
 
 # Hook tpc_finish's hook method.
 # New hook must be a local method because it must access tpc_finish's "self"
 # and original hook.
+
+LOG('TIDStorage',INFO,'Monkey patching ClientStorage.tpc_finish and ClientStorage.getLastCommitedTID')
 
 original_tpc_finish = ClientStorage.tpc_finish
 def tpc_finish(self, txn, f=None):

Modified: erp5/trunk/products/TIDStorage/transaction_transaction.py
URL: http://svn.erp5.org/erp5/trunk/products/TIDStorage/transaction_transaction.py?rev=25713&r1=25712&r2=25713&view=diff
==============================================================================
--- erp5/trunk/products/TIDStorage/transaction_transaction.py [utf8] (original)
+++ erp5/trunk/products/TIDStorage/transaction_transaction.py [utf8] Wed Feb 25 17:35:34 2009
@@ -28,7 +28,7 @@
 
 from ExchangeProtocol import ExchangeProtocol
 from transaction._transaction import Transaction
-from zLOG import LOG, WARNING
+from zLOG import LOG, WARNING, INFO
 import socket
 import thread
 import struct
@@ -39,6 +39,8 @@
 
 tid_storage = None
 zope_identifier = None
+
+LOG('TIDStorage',INFO,'Monkey patching transaction._transaction.Transaction._commitResources')
 
 # Borrowed from CMFActivity.ActivityTool.getCurrentNode
 def getZopeId():




More information about the Erp5-report mailing list