未验证 提交 9fcfc6e1 编写于 作者: R ruri 提交者: GitHub

small fix (#91)

上级 32c59d55
......@@ -18,7 +18,7 @@ import sys
from paddle.distributed import ParallelEnv
logger_initialized = {}
logger_initialized = []
def setup_logger(output=None, name="ppgan"):
......@@ -67,7 +67,7 @@ def setup_logger(output=None, name="ppgan"):
fh.setLevel(logging.DEBUG)
fh.setFormatter(plain_formatter)
logger.addHandler(fh)
logger_initialized.append(name)
return logger
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册