Add call to logging::InitLogging() during startup to write to stderr.
There's no need to write to a file since we only log messages for commandline parameter validations (ie. usage errors). BUG=6446 TEST=unit test Change-Id: I0e55d569534f953526a6b788dbc6b3e284ff8b4f Review URL: http://codereview.chromium.org/3464008
This commit is contained in:
parent
da5db7a830
commit
9dc2fbf616
1 changed files with 4 additions and 0 deletions
|
|
@ -143,6 +143,10 @@ int main(int argc, char *argv[]) {
|
|||
FilePath my_path(argv[0]);
|
||||
file_util::AbsolutePath(&my_path);
|
||||
s_metrics_lib.Init();
|
||||
InitLogging(NULL,
|
||||
LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
|
||||
DONT_LOCK_LOG_FILE,
|
||||
DELETE_OLD_LOG_FILE);
|
||||
s_system_log.Initialize(my_path.BaseName().value().c_str());
|
||||
KernelCollector kernel_collector;
|
||||
kernel_collector.Initialize(CountKernelCrash,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue