diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 20:24:47 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 20:24:47 +0000 |
commit | afafb9ffdf0593432f67ce2ca683780c36256540 (patch) | |
tree | 23435107277cb3465746a590acf47e3fbee95b62 | |
parent | 93842c2ee944584ccc652d180955ef62324dcde4 (diff) | |
download | chromium_src-afafb9ffdf0593432f67ce2ca683780c36256540.zip chromium_src-afafb9ffdf0593432f67ce2ca683780c36256540.tar.gz chromium_src-afafb9ffdf0593432f67ce2ca683780c36256540.tar.bz2 |
Convert LOG(INFO) to VLOG(1) - chrome/tools/.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3942001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63259 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/tools/crash_service/crash_service.cc | 38 | ||||
-rw-r--r-- | chrome/tools/crash_service/main.cc | 8 |
2 files changed, 23 insertions, 23 deletions
diff --git a/chrome/tools/crash_service/crash_service.cc b/chrome/tools/crash_service/crash_service.cc index dcf1daa..16cee48 100644 --- a/chrome/tools/crash_service/crash_service.cc +++ b/chrome/tools/crash_service/crash_service.cc @@ -105,7 +105,7 @@ bool CreateTopWindow(HINSTANCE instance, bool visible) { return false; ::UpdateWindow(window); - LOG(INFO) << "window handle is " << window; + VLOG(1) << "window handle is " << window; g_top_window = window; return true; } @@ -253,15 +253,15 @@ bool CrashService::Initialize(const std::wstring& command_line) { reporter_tag_ = cmd_line.GetSwitchValueNative(kReporterTag); // Log basic information. - LOG(INFO) << "pipe name is " << pipe_name; - LOG(INFO) << "dumps at " << dumps_path; - LOG(INFO) << "reports at " << report_path_; + VLOG(1) << "pipe name is " << pipe_name + << "\ndumps at " << dumps_path + << "\nreports at " << report_path_; if (sender_) { - LOG(INFO) << "checkpoint is " << checkpoint_path; - LOG(INFO) << "server is " << kCrashReportURL; - LOG(INFO) << "maximum " << sender_->max_reports_per_day() << " reports/day"; - LOG(INFO) << "reporter is " << reporter_tag_; + VLOG(1) << "checkpoint is " << checkpoint_path + << "\nserver is " << kCrashReportURL + << "\nmaximum " << sender_->max_reports_per_day() << " reports/day" + << "\nreporter is " << reporter_tag_; } // Start servicing clients. if (!dumper_->Start()) { @@ -290,7 +290,7 @@ bool CrashService::Initialize(const std::wstring& command_line) { void CrashService::OnClientConnected(void* context, const google_breakpad::ClientInfo* client_info) { ProcessingLock lock; - LOG(INFO) << "client start. pid = " << client_info->pid(); + VLOG(1) << "client start. pid = " << client_info->pid(); CrashService* self = static_cast<CrashService*>(context); ::InterlockedIncrement(&self->clients_connected_); } @@ -298,7 +298,7 @@ void CrashService::OnClientConnected(void* context, void CrashService::OnClientExited(void* context, const google_breakpad::ClientInfo* client_info) { ProcessingLock lock; - LOG(INFO) << "client end. pid = " << client_info->pid(); + VLOG(1) << "client end. pid = " << client_info->pid(); CrashService* self = static_cast<CrashService*>(context); ::InterlockedIncrement(&self->clients_terminated_); @@ -319,7 +319,7 @@ void CrashService::OnClientExited(void* context, // Some people can restart chrome very fast, check again if we have // a new client before exiting for real. if (self->clients_connected_ == self->clients_terminated_) { - LOG(INFO) << "zero clients. exiting"; + VLOG(1) << "zero clients. exiting"; ::PostMessage(g_top_window, WM_CLOSE, 0, 0); } } @@ -340,7 +340,7 @@ void CrashService::OnClientDumpRequest(void* context, } DWORD pid = client_info->pid(); - LOG(INFO) << "dump for pid = " << pid << " is " << *file_path; + VLOG(1) << "dump for pid = " << pid << " is " << *file_path; CrashService* self = static_cast<CrashService*>(context); if (!self) { @@ -396,7 +396,7 @@ unsigned long CrashService::AsyncSendDump(void* context) { // Take the server lock while sending. This also prevent early // termination of the service object. AutoLock lock(info->self->sending_); - LOG(INFO) << "trying to send report for pid = " << info->pid; + VLOG(1) << "trying to send report for pid = " << info->pid; google_breakpad::ReportResult send_result = info->self->sender_->SendCrashReport(kCrashReportURL, info->map, info->dump_path, &report_id); @@ -423,7 +423,7 @@ unsigned long CrashService::AsyncSendDump(void* context) { }; } - LOG(INFO) << "dump for pid =" << info->pid << " crash2 id =" << report_id; + VLOG(1) << "dump for pid =" << info->pid << " crash2 id =" << report_id; --retry_round; } while (retry_round >= 0); @@ -441,15 +441,15 @@ int CrashService::ProcessingLoop() { DispatchMessage(&msg); } - LOG(INFO) << "session ending.."; + VLOG(1) << "session ending.."; while (ProcessingLock::IsWorking()) { ::Sleep(50); } - LOG(INFO) << "clients connected :" << clients_connected_; - LOG(INFO) << "clients terminated :" << clients_terminated_; - LOG(INFO) << "dumps serviced :" << requests_handled_; - LOG(INFO) << "dumps reported :" << requests_sent_; + VLOG(1) << "clients connected :" << clients_connected_ + << "\nclients terminated :" << clients_terminated_ + << "\ndumps serviced :" << requests_handled_ + << "\ndumps reported :" << requests_sent_; return static_cast<int>(msg.wParam); } diff --git a/chrome/tools/crash_service/main.cc b/chrome/tools/crash_service/main.cc index cf6bab9..4a8e56a 100644 --- a/chrome/tools/crash_service/main.cc +++ b/chrome/tools/crash_service/main.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -49,17 +49,17 @@ int __stdcall wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd_line, logging::LOCK_LOG_FILE, logging::APPEND_TO_OLD_LOG_FILE); logging::SetLogItems(true, true, true, false); - LOG(INFO) << "session start. cmdline is [" << cmd_line << "]"; + VLOG(1) << "session start. cmdline is [" << cmd_line << "]"; CrashService crash_service(operating_dir.ToWStringHack()); if (!crash_service.Initialize(::GetCommandLineW())) return 1; - LOG(INFO) << "ready to process crash requests"; + VLOG(1) << "ready to process crash requests"; // Enter the message loop. int retv = crash_service.ProcessingLoop(); // Time to exit. - LOG(INFO) << "session end. return code is " << retv; + VLOG(1) << "session end. return code is " << retv; return retv; } |