From b241c7329c06e9ca77d01891a2468568d5e317de Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Thu, 5 Dec 2019 19:32:04 +0800 Subject: [PATCH] Refine a Warning Which Can Occur Not Only During Init (#21546) As the title --- paddle/fluid/platform/init.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/platform/init.cc b/paddle/fluid/platform/init.cc index 435fc5a6a0..fa2c1b9758 100644 --- a/paddle/fluid/platform/init.cc +++ b/paddle/fluid/platform/init.cc @@ -206,10 +206,11 @@ void SignalHandle(const char *data, int size) { try { // The signal is coming line by line but we print general guide just once std::call_once(glog_warning_once_flag, [&]() { - LOG(WARNING) << "Initialize GLOG failed, PaddlePaddle may not be able to " - "print GLOG\n"; - LOG(WARNING) << "You could check whether you killed GLOG initialize " - "process or PaddlePaddle process accidentally\n"; + LOG(WARNING) << "Warning: PaddlePaddle catches a failure signal, it may " + "not work properly\n"; + LOG(WARNING) << "You could check whether you killed PaddlePaddle " + "thread/process accidentally or report the case to " + "PaddlePaddle\n"; LOG(WARNING) << "The detail failure signal is:\n\n"; }); -- GitLab