[Zope-Checkins]
CVS: Zope/lib/python/Products/PluginIndexes/PathIndex
- PathIndex.py:1.42
Fred L. Drake, Jr.
fred at zope.com
Wed Apr 21 23:35:40 EDT 2004
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
In directory cvs.zope.org:/tmp/cvs-serv18764
Modified Files:
PathIndex.py
Log Message:
clean up some logging calls, one of which wasn't converted yet
=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.41 => 1.42 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.41 Tue Apr 20 10:30:44 2004
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py Wed Apr 21 23:35:39 2004
@@ -125,8 +125,8 @@
""" hook for (Z)Catalog """
if not self._unindex.has_key(docid):
- LOG.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('/')
@@ -143,9 +143,8 @@
if not self._index[comp]:
del self._index[comp]
except KeyError:
- LOG(self.__class__.__name__, ERROR,
- 'Attempt to unindex document'
- ' with id %s failed' % docid)
+ LOG.error('Attempt to unindex document with id %s failed'
+ % docid)
self._migrate_length()
self._length.change(-1)
More information about the Zope-Checkins
mailing list