From: Cheng Zhao Date: Mon, 7 Sep 2015 13:44:03 +0000 (+0800) Subject: Explicitly writes debug log to stderr X-Git-Tag: v0.32.0~6^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4412a89270ce0b7582c410e61a9d69fd8f3b65c5;p=electron.git Explicitly writes debug log to stderr If we don't do this Chromium will close stdout and stderr for us, resulting process.stdout not working. --- diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index 02dd11c8..3c7d6b2e 100644 --- a/atom/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -38,7 +38,9 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) { #else settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; #endif // defined(DEBUG) -#endif // defined(OS_WIN) +#else // defined(OS_WIN) + settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; +#endif // !defined(OS_WIN) logging::InitLogging(settings); // Logging with pid and timestamp.