提交 54442b64 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Deprecated cache entries now trigger a warning

Most people should have updated their local cache by now. Making it a warning will ensure we notice if for some reason a bug generates new invalid cache entries.
上级 7f6a333b
...@@ -577,7 +577,11 @@ class ModuleCache(object): ...@@ -577,7 +577,11 @@ class ModuleCache(object):
# As a result, we delete it instead (which is also # As a result, we delete it instead (which is also
# simpler to implement). # simpler to implement).
_rmtree(root, ignore_nocleanup=True, _rmtree(root, ignore_nocleanup=True,
msg='deprecated cache entry') msg=(
'invalid cache entry format -- this '
'should not happen unless your cache '
'was really old'),
level=logging.WARN)
continue continue
# Check the path to the module stored in the KeyData # Check the path to the module stored in the KeyData
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论