未验证 提交 edbad8ed 编写于 作者: S Shijie 提交者: GitHub

replace plain_formatter (#2212)

上级 b83e39ef
...@@ -65,7 +65,7 @@ def setup_logger(name="ppdet", output=None): ...@@ -65,7 +65,7 @@ def setup_logger(name="ppdet", output=None):
os.makedirs(os.path.dirname(filename)) os.makedirs(os.path.dirname(filename))
fh = logging.FileHandler(filename, mode='a') fh = logging.FileHandler(filename, mode='a')
fh.setLevel(logging.DEBUG) fh.setLevel(logging.DEBUG)
fh.setFormatter(plain_formatter) fh.setFormatter(logging.Formatter())
logger.addHandler(fh) logger.addHandler(fh)
logger_initialized.append(name) logger_initialized.append(name)
return logger return logger
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册