From 428c884fca81a25f30a5e454f9472d9a1ae73c31 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Wed, 13 Jan 2021 00:45:13 -0600 Subject: [PATCH] [Cherry-pick] Remove c++ stacktrace open hint #30341 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Cherry-pick] Remove c++ stacktrace open hint,cherry-pick of #30325 --- paddle/fluid/platform/enforce.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/paddle/fluid/platform/enforce.h b/paddle/fluid/platform/enforce.h index ec3e07079ac..5264890d926 100644 --- a/paddle/fluid/platform/enforce.h +++ b/paddle/fluid/platform/enforce.h @@ -280,15 +280,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(); } -- GitLab