Chromium Code Reviews| Index: ipc/ipc_sync_channel.cc |
| diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc |
| index 682286f7a57cb239b43397de701a5095ca477fa6..903383a2e545d500dc21ca323f38f81afc780ca2 100644 |
| --- a/ipc/ipc_sync_channel.cc |
| +++ b/ipc/ipc_sync_channel.cc |
| @@ -5,6 +5,7 @@ |
| #include "ipc/ipc_sync_channel.h" |
| #include "base/bind.h" |
| +#include "base/debug/stack_trace.h" |
| #include "base/lazy_instance.h" |
| #include "base/location.h" |
| #include "base/logging.h" |
| @@ -307,9 +308,9 @@ bool SyncChannel::SyncContext::TryToUnblockListener(const Message* msg) { |
| bool send_result = deserializers_.back().deserializer-> |
| SerializeOutputParameters(*msg); |
| deserializers_.back().send_result = send_result; |
| - LOG_IF(ERROR, !send_result) << "Couldn't deserialize reply message"; |
| + VLOG_IF(1, !send_result) << "Couldn't deserialize reply message"; |
| } else { |
| - LOG(ERROR) << "Received error reply"; |
| + VLOG(1) << "Received error reply"; |
| } |
| deserializers_.back().done_event->Signal(); |
| @@ -363,7 +364,7 @@ void SyncChannel::SyncContext::OnChannelClosed() { |
| void SyncChannel::SyncContext::OnSendTimeout(int message_id) { |
| base::AutoLock auto_lock(deserializers_lock_); |
| PendingSyncMessageQueue::iterator iter; |
| - LOG(ERROR) << "Send timeout"; |
| + VLOG(1) << "Send timeout"; |
| for (iter = deserializers_.begin(); iter != deserializers_.end(); iter++) { |
| if (iter->id == message_id) { |
| iter->done_event->Signal(); |
| @@ -375,7 +376,13 @@ void SyncChannel::SyncContext::OnSendTimeout(int message_id) { |
| void SyncChannel::SyncContext::CancelPendingSends() { |
| base::AutoLock auto_lock(deserializers_lock_); |
| PendingSyncMessageQueue::iterator iter; |
| - LOG(ERROR) << "Canceling pending sends"; |
| +#if !defined(OS_ANDROID) && !defined(OS_NACL) |
|
piman
2012/08/16 17:57:10
Can you add a reference to that bug here too?
Bernhard Bauer
2012/08/16 19:14:18
Done.
|
| + if (VLOG_IS_ON(1)) { |
| + VLOG(1) << "Canceling pending sends"; |
| + base::debug::StackTrace trace; |
| + trace.PrintBacktrace(); |
| + } |
| +#endif |
| for (iter = deserializers_.begin(); iter != deserializers_.end(); iter++) |
| iter->done_event->Signal(); |
| } |
| @@ -435,7 +442,7 @@ bool SyncChannel::SendWithTimeout(Message* message, int timeout_ms) { |
| // *this* might get deleted in WaitForReply. |
| scoped_refptr<SyncContext> context(sync_context()); |
| if (context->shutdown_event()->IsSignaled()) { |
| - LOG(ERROR) << "shutdown event is signaled"; |
| + VLOG(1) << "shutdown event is signaled"; |
| delete message; |
| return false; |
| } |