remove c++ stacktrace hint (#30325)

revert-31562-mean
Chen Weihang 5 years ago committed by GitHub
parent fc42faffc2
commit c8c8f205ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -284,15 +284,8 @@ inline std::string GetErrorSumaryString(StrType&& what, const char* file,
"Summary:\n----------------------\n";
}
sout << string::Sprintf("%s (at %s:%d)", std::forward<StrType>(what), file,
line);
if (FLAGS_call_stack_level < 2) {
// 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;
line)
<< std::endl;
return sout.str();
}

Loading…
Cancel
Save