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.
This commit is contained in:
Cheng Zhao 2015-09-07 21:44:03 +08:00
parent d4aa2308cd
commit 4412a89270

View file

@ -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.