Commit c55bc9a8 authored by Jeremy Hylton's avatar Jeremy Hylton

Add logging for EOFError seen overnight (and occasionally before).

parent d4ee1e00
......@@ -84,6 +84,7 @@ old class.
import cPickle
import cStringIO
import logging
from persistent import Persistent
from persistent.wref import WeakRefMarker, WeakRef
......@@ -378,8 +379,13 @@ class BaseObjectReader:
def getState(self, pickle):
unpickler = self._get_unpickler(pickle)
unpickler.load() # skip the class metadata
return unpickler.load()
try:
unpickler.load() # skip the class metadata
return unpickler.load()
except EOFError, msg:
log = logging.getLogger("zodb.serialize")
log.exception("Unpickling error: %r", pickle)
raise
def setGhostState(self, obj, pickle):
state = self.getState(pickle)
......
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