Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Unified Diff: content/common/process_watcher_mac.cc

Issue 8416055: Convert some non-debug logging on content/common to debug logging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | content/common/process_watcher_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/process_watcher_mac.cc
===================================================================
--- content/common/process_watcher_mac.cc (revision 107816)
+++ content/common/process_watcher_mac.cc (working copy)
@@ -22,7 +22,7 @@
void BlockingReap(pid_t child) {
const pid_t result = HANDLE_EINTR(waitpid(child, NULL, 0));
if (result == -1) {
- PLOG(ERROR) << "waitpid(" << child << ", NULL, 0)";
+ DPLOG(ERROR) << "waitpid(" << child << ", NULL, 0)";
}
}
@@ -77,7 +77,7 @@
int kq = HANDLE_EINTR(kqueue());
if (kq == -1) {
- PLOG(ERROR) << "kqueue()";
+ DPLOG(ERROR) << "kqueue()";
} else {
file_util::ScopedFD auto_close_kq(&kq);
@@ -87,7 +87,7 @@
if (result == -1) {
if (errno != ESRCH) {
- PLOG(ERROR) << "kevent (setup " << child << ")";
+ DPLOG(ERROR) << "kevent (setup " << child << ")";
} else {
// At this point, one of the following has occurred:
// 1. The process has died but has not yet been reaped.
@@ -129,10 +129,10 @@
}
if (result == -1) {
- PLOG(ERROR) << "kevent (wait " << child << ")";
+ DPLOG(ERROR) << "kevent (wait " << child << ")";
} else if (result > 1) {
- LOG(ERROR) << "kevent (wait " << child << "): unexpected result "
- << result;
+ DLOG(ERROR) << "kevent (wait " << child << "): unexpected result "
+ << result;
} else if (result == 1) {
if ((event.fflags & NOTE_EXIT) &&
(event.ident == static_cast<uintptr_t>(child))) {
@@ -141,9 +141,9 @@
BlockingReap(child);
return;
} else {
- LOG(ERROR) << "kevent (wait " << child
- << "): unexpected event: fflags=" << event.fflags
- << ", ident=" << event.ident;
+ DLOG(ERROR) << "kevent (wait " << child
+ << "): unexpected event: fflags=" << event.fflags
+ << ", ident=" << event.ident;
}
}
}
@@ -155,7 +155,7 @@
// signal is not delivered to a live process.
result = kill(child, SIGKILL);
if (result == -1) {
- PLOG(ERROR) << "kill(" << child << ", SIGKILL)";
+ DPLOG(ERROR) << "kill(" << child << ", SIGKILL)";
} else {
// The child is definitely on the way out now. BlockingReap won't need to
// wait for long, if at all.
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | content/common/process_watcher_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698