mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Return descriptive string if stack-traces are disabled
PiperOrigin-RevId: 270876245 Change-Id: I899a4628541712a212aa24d3a01d48d9b070c734
This commit is contained in:
parent
51d1a0e8ba
commit
c337ea117e
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user