Sandboxed API: Env vars: Set GOOGLE_STDERRTHRESHOLD used by OSS Abseil

Internally, Abseil and Google logging use different flags and env vars to
control output.

PiperOrigin-RevId: 559715938
Change-Id: I4a908eb835ae0c5d598fb1ca6dc09182a9c3be22
This commit is contained in:
Christian Blichmann 2023-08-24 04:49:40 -07:00 committed by Copybara-Service
parent 0036d9d09f
commit eaf8ef88c4

View File

@ -118,7 +118,7 @@ class Sandbox {
private:
// Gets the environment variables passed to the sandboxee.
virtual void GetEnvs(std::vector<std::string>* envs) const {
envs->push_back("GOOGLE_LOGTOSTDERR=1");
envs->push_back("GOOGLE_STDERRTHRESHOLD=INFO");
}
// Returns the sandbox policy. Subclasses can modify the default policy