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

[Cherry-pick] Remove c++ stacktrace open hint #30341

[Cherry-pick] Remove c++ stacktrace open hint,cherry-pick of #30325
上级 43636886
...@@ -280,15 +280,8 @@ inline std::string GetErrorSumaryString(StrType&& what, const char* file, ...@@ -280,15 +280,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.
先完成此消息的编辑!
想要评论请 注册