Kaydet (Commit) 85b10471 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

No need to setenv SAL_LOG in the code for iOS

One can set environment variables to be used when debugging an app in
Xcode, which is when it is interesting to see SAL_INFO output anyway.

(This is very different from Android, where one can't set environment
variables "before" an app starts, as apps there aren't separate
programs that would be exec'ed.)

Change-Id: I3971d1b2d1a849deac2722a90271ef2458db1643
üst b7525f1f
...@@ -133,8 +133,6 @@ extern "C" ...@@ -133,8 +133,6 @@ extern "C"
void void
lo_initialize(void) lo_initialize(void)
{ {
setenv("SAL_LOG", "+WARN+INFO.vcl.headless+INFO.vcl.coretext+INFO.vcl.ios", 1);
const char *argv[] = { const char *argv[] = {
"placeholder-exe", "placeholder-exe",
"-env:URE_INTERNAL_LIB_DIR=file:///", "-env:URE_INTERNAL_LIB_DIR=file:///",
......
...@@ -97,10 +97,10 @@ char const * toString(sal_detail_LogLevel level) { ...@@ -97,10 +97,10 @@ char const * toString(sal_detail_LogLevel level) {
#endif #endif
// getenv is not thread safe, so minimize use of result; except on Android and // getenv is not thread safe, so minimize use of result; except on Android,
// iOS, see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is // see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is
// changed while the process is running": // changed while the process is running":
#if defined ANDROID || defined IOS #if defined ANDROID
char const * getEnvironmentVariable() { char const * getEnvironmentVariable() {
return std::getenv("SAL_LOG"); return std::getenv("SAL_LOG");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment