Return descriptive string if stack-traces are disabled

PiperOrigin-RevId: 270876245
Change-Id: I899a4628541712a212aa24d3a01d48d9b070c734
This commit is contained in:
Kevin Hamacher 2019-09-24 04:26:47 -07:00 committed by Copybara-Service
parent 51d1a0e8ba
commit c337ea117e

View File

@ -270,7 +270,7 @@ bool StackTracePeer::LaunchLibunwindSandbox(const Regs* regs,
std::string GetStackTrace(const Regs* regs, const Mounts& mounts,
const std::string& delim) {
if (absl::GetFlag(FLAGS_sandbox_disable_all_stack_traces)) {
return "";
return "[Stacktraces disabled]";
}
if (!regs) {
LOG(WARNING) << "Could not obtain stacktrace, regs == nullptr";