未验证 提交 a16ef9f1 编写于 作者: R Roc 提交者: GitHub

fix a bug that print log twice (#47336) (#47343)

上级 85094bce
......@@ -18,7 +18,10 @@ import logging
def get_logger(log_level, name="root"):
logger = logging.getLogger(name)
# Avoid printing multiple logs
logger.propagate = False
if not logger.handlers:
log_handler = logging.StreamHandler()
logger.setLevel(log_level)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册