[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.41

Andreas Jung andreas at andreas-jung.com
Tue Apr 20 10:31:15 EDT 2004


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
In directory cvs.zope.org:/tmp/cvs-serv9130/lib/python/Products/PluginIndexes/PathIndex

Modified Files:
	PathIndex.py 
Log Message:
zLOG -> logging


=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.40 => 1.41 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.40	Sat Jan 24 10:48:38 2004
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py	Tue Apr 20 10:30:44 2004
@@ -14,6 +14,7 @@
 __version__ = '$Id$'
 
 from types import StringType, ListType, TupleType
+from logging import getLogger
 
 from Globals import Persistent, DTMLFile
 from OFS.SimpleItem import SimpleItem
@@ -21,13 +22,13 @@
 from BTrees.OOBTree import OOBTree
 from BTrees.IIBTree import IITreeSet, IISet, intersection, union
 from BTrees.Length import Length
-from zLOG import LOG, ERROR
 
 from Products.PluginIndexes import PluggableIndex
 from Products.PluginIndexes.common.util import parseIndexRequest
 from Products.PluginIndexes.common import safe_callable
 
 _marker = []
+LOG = getLogger('Zope.PathIndex')
 
 class PathIndex(Persistent, SimpleItem):
     """ A path index stores all path components of the physical
@@ -124,9 +125,8 @@
         """ hook for (Z)Catalog """
 
         if not self._unindex.has_key(docid):
-            LOG(self.__class__.__name__, ERROR,
-                'Attempt to unindex nonexistent document'
-                ' with id %s' % docid)
+            LOG.error('Attempt to unindex nonexistent document'
+                     ' with id %s' % docid)
             return
 
         comps =  self._unindex[docid].split('/')




More information about the Zope-Checkins mailing list