Add exception logging
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import logging
|
||||
import pickle
|
||||
|
||||
try:
|
||||
@@ -61,6 +62,7 @@ def python_memcache_deserializer(key, value, flags):
|
||||
unpickler = pickle.Unpickler(buf)
|
||||
return unpickler.load()
|
||||
except Exception as e:
|
||||
logging.info('Pickle error', exc_info=True)
|
||||
return None
|
||||
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user