未验证 提交 63fedfd4 编写于 作者: X xujiaqi01 提交者: GitHub

fix logger (#24682)

* fix logger of FetchHandler,which may print log twice
* test=develop
上级 23a85f03
...@@ -17,10 +17,10 @@ import threading ...@@ -17,10 +17,10 @@ import threading
import time import time
import logging import logging
import numpy as np import numpy as np
from paddle.fluid.log_helper import get_logger
FORMAT = '%(asctime)s-%(levelname)s: %(message)s' local_logger = get_logger(
logging.basicConfig(level=logging.INFO, format=FORMAT) __name__, logging.INFO, fmt='%(asctime)s-%(levelname)s: %(message)s')
local_logger = logging.getLogger(__name__)
from .trainer_desc import MultiTrainer, DistMultiTrainer, PipelineTrainer from .trainer_desc import MultiTrainer, DistMultiTrainer, PipelineTrainer
from .device_worker import Hogwild, DownpourSGD, Section, DownpourSGDOPT from .device_worker import Hogwild, DownpourSGD, Section, DownpourSGDOPT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册