From 1f8e88586b46fea3252264369147564164b46cb4 Mon Sep 17 00:00:00 2001 From: Kevin Hamacher Date: Wed, 9 Sep 2020 02:12:05 -0700 Subject: [PATCH] Log details when executor fails to open the sandboxee binary PiperOrigin-RevId: 330680717 Change-Id: I4ec855861196177321783dc94f2e05a28e84d512 --- sandboxed_api/sandbox2/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxed_api/sandbox2/executor.cc b/sandboxed_api/sandbox2/executor.cc index 6170a9d..f2afb3a 100644 --- a/sandboxed_api/sandbox2/executor.cc +++ b/sandboxed_api/sandbox2/executor.cc @@ -86,7 +86,7 @@ pid_t Executor::StartSubProcess(int32_t clone_flags, const Namespace* ns, if (!path_.empty()) { exec_fd_ = open(path_.c_str(), O_PATH); if (exec_fd_ < 0) { - LOG(ERROR) << "Could not open file " << path_; + PLOG(ERROR) << "Could not open file " << path_; return -1; } }