未验证 提交 c8c8f205 编写于 作者: C Chen Weihang 提交者: GitHub

remove c++ stacktrace hint (#30325)

上级 fc42faff
...@@ -284,15 +284,8 @@ inline std::string GetErrorSumaryString(StrType&& what, const char* file, ...@@ -284,15 +284,8 @@ inline std::string GetErrorSumaryString(StrType&& what, const char* file,
"Summary:\n----------------------\n"; "Summary:\n----------------------\n";
} }
sout << string::Sprintf("%s (at %s:%d)", std::forward<StrType>(what), file, sout << string::Sprintf("%s (at %s:%d)", std::forward<StrType>(what), file,
line); line)
if (FLAGS_call_stack_level < 2) { << std::endl;
// NOTE(chenweihang): if no C++ backtrace, give a hint to tell users
// how to show C++ backtrace, this hint only show in 2.0-rc verison,
// and will be removed in 2.0 official version
sout << "\n [Hint: If you need C++ stacktraces for debugging, please set "
"`FLAGS_call_stack_level=2`.]";
}
sout << std::endl;
return sout.str(); return sout.str();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册