diff --git a/paddle/fluid/platform/enforce.h b/paddle/fluid/platform/enforce.h index 421f11dd0b2604c4af90aa9bfd9c8568dd79bf2d..c2ffed46e13003a2bfe4ec58eddf67e9aae0bcb7 100644 --- a/paddle/fluid/platform/enforce.h +++ b/paddle/fluid/platform/enforce.h @@ -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(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(); }