[Zodb-checkins] CVS: Zope3/lib/python/ZODB - Connection.py:1.82
Jeremy Hylton
jeremy@zope.com
Mon, 7 Oct 2002 19:25:32 -0400
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv7166/ZODB
Modified Files:
Connection.py
Log Message:
Log each object commit at DEBUG level.
=== Zope3/lib/python/ZODB/Connection.py 1.81 => 1.82 ===
--- Zope3/lib/python/ZODB/Connection.py:1.81 Thu Oct 3 15:44:24 2002
+++ Zope3/lib/python/ZODB/Connection.py Mon Oct 7 19:25:31 2002
@@ -50,10 +50,11 @@
from ZODB.POSException import ConflictError
from ZODB.Serialize import ConnectionUnpickler, \
new_persistent_id, getClassMetadata
-from Transaction import get_transaction
+from ZODB.utils import u64
+from Transaction import get_transaction
from Persistence.Cache import Cache
-from zLOG import LOG, ERROR, BLATHER, INFO
+from zLOG import LOG, ERROR, BLATHER, INFO, DEBUG
import cPickle
from cStringIO import StringIO
@@ -269,6 +270,7 @@
def objcommit(self, object, transaction):
oid = object._p_oid
+ LOG("ZODB", DEBUG, "commit object %s" % u64(oid))
if oid is None or object._p_jar is not self:
oid = self.new_oid()