diff --git a/python/paddle/fluid/log_helper.py b/python/paddle/fluid/log_helper.py index ab20ed4c48c7a1ed569e03be5d589f3bf1c59b14..a7617c8f62a7313da3375c61c1b2f80b4d593c67 100644 --- a/python/paddle/fluid/log_helper.py +++ b/python/paddle/fluid/log_helper.py @@ -49,4 +49,8 @@ def get_logger(name, level, fmt=None): handler.setFormatter(formatter) logger.addHandler(handler) + + # stop propagate for propagating may print + # log multiple times + logger.propagate = False return logger