未验证 提交 b241c732 编写于 作者: H Huihuang Zheng 提交者: GitHub

Refine a Warning Which Can Occur Not Only During Init (#21546)

As the title
上级 20d61414
...@@ -206,10 +206,11 @@ void SignalHandle(const char *data, int size) { ...@@ -206,10 +206,11 @@ void SignalHandle(const char *data, int size) {
try { try {
// The signal is coming line by line but we print general guide just once // The signal is coming line by line but we print general guide just once
std::call_once(glog_warning_once_flag, [&]() { std::call_once(glog_warning_once_flag, [&]() {
LOG(WARNING) << "Initialize GLOG failed, PaddlePaddle may not be able to " LOG(WARNING) << "Warning: PaddlePaddle catches a failure signal, it may "
"print GLOG\n"; "not work properly\n";
LOG(WARNING) << "You could check whether you killed GLOG initialize " LOG(WARNING) << "You could check whether you killed PaddlePaddle "
"process or PaddlePaddle process accidentally\n"; "thread/process accidentally or report the case to "
"PaddlePaddle\n";
LOG(WARNING) << "The detail failure signal is:\n\n"; LOG(WARNING) << "The detail failure signal is:\n\n";
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册