提交 371bb3db authored 作者: Frederic's avatar Frederic

Set back the default INFO logging at one place, but only if the user didn't specify one.

上级 7b2189f4
...@@ -11,6 +11,10 @@ import logging ...@@ -11,6 +11,10 @@ import logging
from theano import config from theano import config
_logger = logging.getLogger("theano.gof.compilelock") _logger = logging.getLogger("theano.gof.compilelock")
# If the user provided a logging level, we don't want to override it.
if _logger.level == logging.NOTSET:
# INFO will show the the messages "Refreshing lock" message
_logger.setLevel(logging.INFO)
# In seconds, time that a process will wait before deciding to override an # In seconds, time that a process will wait before deciding to override an
# existing lock. An override only happens when the existing lock is held by # existing lock. An override only happens when the existing lock is held by
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论