From edbad8ed3aeb4a4ccd7730dc7d2faba71a6a02a2 Mon Sep 17 00:00:00 2001 From: Shijie <821898965@qq.com> Date: Mon, 15 Feb 2021 19:19:29 +0800 Subject: [PATCH] replace plain_formatter (#2212) --- dygraph/ppdet/utils/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph/ppdet/utils/logger.py b/dygraph/ppdet/utils/logger.py index f02c3134b..9f02313ed 100644 --- a/dygraph/ppdet/utils/logger.py +++ b/dygraph/ppdet/utils/logger.py @@ -65,7 +65,7 @@ def setup_logger(name="ppdet", output=None): os.makedirs(os.path.dirname(filename)) fh = logging.FileHandler(filename, mode='a') fh.setLevel(logging.DEBUG) - fh.setFormatter(plain_formatter) + fh.setFormatter(logging.Formatter()) logger.addHandler(fh) logger_initialized.append(name) return logger -- GitLab