提交 a8779c0f authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Prevent Theano from messing with root logger level

It was setting the root logger level to DEBUG. Also, I do not think the level of the scan logger should be DEBUG anyway, it should be WARNING by default.
上级 7eb8a302
...@@ -5,8 +5,9 @@ from theano import config ...@@ -5,8 +5,9 @@ from theano import config
from theano.gof.compilelock import get_lock, release_lock from theano.gof.compilelock import get_lock, release_lock
from theano.gof import cmodule from theano.gof import cmodule
_logger = logging.getLogger('theano.scan_module.scan_perform') _logger = logging.getLogger('theano.scan_module.scan_perform')
logging.basicConfig(level=logging.DEBUG) _logger.setLevel(logging.WARN)
# Ensure the compiledir is in `sys.path` to be able to reload an existing # Ensure the compiledir is in `sys.path` to be able to reload an existing
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论