Commit 829d6dbf authored by Fred Drake's avatar Fred Drake

clean up some logging calls, one of which wasn't converted yet

parent 69c11a53
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################## ##############################################################################
__version__ = '$Id: PathIndex.py,v 1.41 2004/04/20 14:30:44 andreasjung Exp $' __version__ = '$Id: PathIndex.py,v 1.42 2004/04/22 03:35:39 fdrake Exp $'
from types import StringType, ListType, TupleType from types import StringType, ListType, TupleType
from logging import getLogger from logging import getLogger
...@@ -125,8 +125,8 @@ class PathIndex(Persistent, SimpleItem): ...@@ -125,8 +125,8 @@ class PathIndex(Persistent, SimpleItem):
""" hook for (Z)Catalog """ """ hook for (Z)Catalog """
if not self._unindex.has_key(docid): if not self._unindex.has_key(docid):
LOG.error('Attempt to unindex nonexistent document' LOG.error('Attempt to unindex nonexistent document with id %s'
' with id %s' % docid) % docid)
return return
comps = self._unindex[docid].split('/') comps = self._unindex[docid].split('/')
...@@ -143,9 +143,8 @@ class PathIndex(Persistent, SimpleItem): ...@@ -143,9 +143,8 @@ class PathIndex(Persistent, SimpleItem):
if not self._index[comp]: if not self._index[comp]:
del self._index[comp] del self._index[comp]
except KeyError: except KeyError:
LOG(self.__class__.__name__, ERROR, LOG.error('Attempt to unindex document with id %s failed'
'Attempt to unindex document' % docid)
' with id %s failed' % docid)
self._migrate_length() self._migrate_length()
self._length.change(-1) self._length.change(-1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment