diff --git a/python/paddle/distributed/ps/coordinator.py b/python/paddle/distributed/ps/coordinator.py index 441ace16830d06ce7125d134e0bca28196850d1e..a012f338a514fb0e30d37ce5d9201996de584888 100755 --- a/python/paddle/distributed/ps/coordinator.py +++ b/python/paddle/distributed/ps/coordinator.py @@ -23,10 +23,13 @@ import abc import os import logging -logging.basicConfig( - format='%(asctime)s %(levelname)-2s [%(filename)s:%(lineno)d] %(message)s', - level=logging.INFO) logger = logging.getLogger(__name__) +logger.setLevel(logging.INFO) +formatter = logging.Formatter( + fmt='%(asctime)s %(levelname)-2s [%(filename)s:%(lineno)d] %(message)s') +ch = logging.StreamHandler() +ch.setFormatter(formatter) +logger.addHandler(ch) class ClientInfoAttr: