Add exception logging

This commit is contained in:
Mark Shirley
2013-06-19 14:53:59 -07:00
parent 915c7ac4f1
commit 8ab29a585f

View File

@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import logging
import pickle import pickle
try: try:
@@ -61,6 +62,7 @@ def python_memcache_deserializer(key, value, flags):
unpickler = pickle.Unpickler(buf) unpickler = pickle.Unpickler(buf)
return unpickler.load() return unpickler.load()
except Exception as e: except Exception as e:
logging.info('Pickle error', exc_info=True)
return None return None
return value return value