提交 1591a674 authored 作者: Frederic's avatar Frederic

Warn only once.

上级 cb94f4e6
...@@ -655,7 +655,8 @@ class VM_Linker(link.LocalLinker): ...@@ -655,7 +655,8 @@ class VM_Linker(link.LocalLinker):
if self.use_cloop and self.callback is not None: if self.use_cloop and self.callback is not None:
logger.warn('CVM does not support callback, using Stack VM.') logger.warn('CVM does not support callback, using Stack VM.')
if self.use_cloop and config.profile_memory: if self.use_cloop and config.profile_memory:
logger.warn('CVM does not support memory profile, using Stack VM.') warnings.warn(
'CVM does not support memory profile, using Stack VM.')
deps = None deps = None
if self.allow_gc: if self.allow_gc:
deps = self.compute_gc_dependencies(storage_map) deps = self.compute_gc_dependencies(storage_map)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论