Skip to content

Commit

Permalink
disable writing to debug.log by default
Browse files Browse the repository at this point in the history
Fix #1031
  • Loading branch information
rogerwang committed Aug 25, 2013
1 parent 97dd9f9 commit 9a4562b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/shell_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ void InitLogging() {
PathService::Get(base::DIR_EXE, &log_filename);
log_filename = log_filename.AppendASCII("debug.log");
logging::LoggingSettings settings;
settings.logging_dest = logging::LOG_TO_ALL;
settings.log_file = log_filename.value().c_str();
settings.delete_old = logging::DELETE_OLD_LOG_FILE;
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableLogging)) {
settings.logging_dest = logging::LOG_TO_ALL;
settings.log_file = log_filename.value().c_str();
settings.delete_old = logging::DELETE_OLD_LOG_FILE;
}
logging::InitLogging(settings);
logging::SetLogItems(true, false, true, false);
}
Expand Down

0 comments on commit 9a4562b

Please sign in to comment.