Add exception logging
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user