[Zope-Checkins] SVN: Zope/trunk/lib/python/tempstorage/TemporaryStorage.py zLOG -> logging

Andreas Jung andreas at andreas-jung.com
Sun Jan 8 05:25:24 EST 2006


Log message for revision 41192:
  zLOG -> logging
  

Changed:
  U   Zope/trunk/lib/python/tempstorage/TemporaryStorage.py

-=-
Modified: Zope/trunk/lib/python/tempstorage/TemporaryStorage.py
===================================================================
--- Zope/trunk/lib/python/tempstorage/TemporaryStorage.py	2006-01-08 10:23:26 UTC (rev 41191)
+++ Zope/trunk/lib/python/tempstorage/TemporaryStorage.py	2006-01-08 10:25:23 UTC (rev 41192)
@@ -22,7 +22,7 @@
 
 __version__ ='$Revision: 1.1.2.2 $'[11:-2]
 
-from zLOG import LOG, BLATHER
+from logging import getLogger
 from ZODB.serialize import referencesf
 from ZODB import POSException
 from ZODB.BaseStorage import BaseStorage
@@ -37,6 +37,8 @@
 # keep history of recently gc'ed oids of length RECENTLY_GC_OIDS_LEN
 RECENTLY_GC_OIDS_LEN = 200
 
+LOG = getLogger('TemporaryStorage')
+
 class ReferenceCountError(POSException.POSError):
     """ An error occured while decrementing a reference to an object in
     the commit phase. The object's reference count was below zero."""
@@ -182,10 +184,9 @@
         if version:
             # we allow a version to be in use although we don't
             # support versions in the storage.
-            LOG('TemporaryStorage', BLATHER,
-                ('versions in use with TemporaryStorage although Temporary'
-                 'Storage doesnt support versions'),
-                )
+            LOG.debug('versions in use with TemporaryStorage although Temporary '
+                      'Storage doesnt support versions')
+
         self._lock_acquire()
         try:
             if self._index.has_key(oid):



More information about the Zope-Checkins mailing list