From c337ea117ea4d765b92a12a3b7e9d3c3c6f38c6b Mon Sep 17 00:00:00 2001 From: Kevin Hamacher Date: Tue, 24 Sep 2019 04:26:47 -0700 Subject: [PATCH] Return descriptive string if stack-traces are disabled PiperOrigin-RevId: 270876245 Change-Id: I899a4628541712a212aa24d3a01d48d9b070c734 --- sandboxed_api/sandbox2/stack_trace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxed_api/sandbox2/stack_trace.cc b/sandboxed_api/sandbox2/stack_trace.cc index e892c0b..ab03700 100644 --- a/sandboxed_api/sandbox2/stack_trace.cc +++ b/sandboxed_api/sandbox2/stack_trace.cc @@ -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";