未验证 提交 20b1b080 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix logger propagate. test=develop (#23961)

上级 133f1fc1
......@@ -49,4 +49,8 @@ def get_logger(name, level, fmt=None):
handler.setFormatter(formatter)
logger.addHandler(handler)
# stop propagate for propagating may print
# log multiple times
logger.propagate = False
return logger
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册