Index: content/shell/shell_main_delegate.cc |
diff --git a/content/shell/shell_main_delegate.cc b/content/shell/shell_main_delegate.cc |
index 53a2170c7d7b2b75532ce47c0cbd4c2ef18df275..f226c912444a504ed284e480fd762ad90aa7b162 100644 |
--- a/content/shell/shell_main_delegate.cc |
+++ b/content/shell/shell_main_delegate.cc |
@@ -57,7 +57,7 @@ void InitLogging() { |
log_filename = log_filename.AppendASCII("content_shell.log"); |
logging::InitLogging( |
log_filename.value().c_str(), |
- logging::LOG_ONLY_TO_FILE, |
+ logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, |
logging::LOCK_LOG_FILE, |
logging::DELETE_OLD_LOG_FILE, |
logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
@@ -83,8 +83,8 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) { |
logging::LogEventProvider::Initialize(kContentShellProviderName); |
#endif |
+ InitLogging(); |
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { |
- InitLogging(); |
CommandLine::ForCurrentProcess()->AppendSwitch( |
switches::kAllowFileAccessFromFiles); |
} |