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

fix logger propagate. test=develop. test=release/2.0 (#23983)

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