[Checkins] SVN: zodbupdate/trunk/ More debug logging shows now the currently processed OID

Adam Groszer agroszer at gmail.com
Mon Sep 27 08:52:33 EDT 2010


Log message for revision 116983:
  More debug logging shows now the currently processed OID

Changed:
  U   zodbupdate/trunk/CHANGES.txt
  _U  zodbupdate/trunk/src/
  U   zodbupdate/trunk/src/zodbupdate/update.py

-=-
Modified: zodbupdate/trunk/CHANGES.txt
===================================================================
--- zodbupdate/trunk/CHANGES.txt	2010-09-27 12:42:06 UTC (rev 116982)
+++ zodbupdate/trunk/CHANGES.txt	2010-09-27 12:52:32 UTC (rev 116983)
@@ -4,7 +4,8 @@
 0.5 (unreleased)
 ----------------
 
-- ...
+- More debug logging shows now the currently processed OID
+  (that is helpful to determine which object misses the factory)
 
 0.4 (2010-07-14)
 ----------------


Property changes on: zodbupdate/trunk/src
___________________________________________________________________
Added: svn:ignore
   + zodbupdate.egg-info


Modified: zodbupdate/trunk/src/zodbupdate/update.py
===================================================================
--- zodbupdate/trunk/src/zodbupdate/update.py	2010-09-27 12:42:06 UTC (rev 116982)
+++ zodbupdate/trunk/src/zodbupdate/update.py	2010-09-27 12:52:32 UTC (rev 116983)
@@ -64,11 +64,13 @@
             t = self.__new_transaction()
 
             for oid, serial, current in self.records:
+                logger.debug('Processing OID %s' % ZODB.utils.oid_repr(oid))
+
                 new = self.processor.rename(current)
                 if new is None:
                     continue
 
-                logger.debug('Updated %s' % ZODB.utils.oid_repr(oid))
+                logger.debug('Updated OID %s' % ZODB.utils.oid_repr(oid))
                 self.storage.store(oid, serial, new.getvalue(), '', t)
                 count += 1
 
@@ -119,4 +121,3 @@
                 except ValueError:
                     # No more records
                     break
-



More information about the checkins mailing list