Bug 824224: Always log protocol errors. r=bent
authorChris Jones <jones.chris.g@gmail.com>
Fri, 04 Jan 2013 13:28:37 -0800
changeset 117676 4fd475c2a94ad084162fd6ea82a95c3796fc8dbe
parent 117675 7f2728cfad82440ce7bcdb656f78eca10fce1eb5
child 117677 496d7707ded1946539caabf2b60539e1325b242d
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbent
bugs824224
milestone20.0a1
Bug 824224: Always log protocol errors. r=bent
ipc/glue/AsyncChannel.cpp
--- a/ipc/glue/AsyncChannel.cpp
+++ b/ipc/glue/AsyncChannel.cpp
@@ -565,20 +565,18 @@ AsyncChannel::Clear()
         mChannelErrorTask->Cancel();
         mChannelErrorTask = NULL;
     }
 }
 
 static void
 PrintErrorMessage(bool isChild, const char* channelName, const char* msg)
 {
-    if (LoggingEnabled()) {
-        printf_stderr("\n###!!! [%s][%s] Error: %s\n\n",
-                      isChild ? "Child" : "Parent", channelName, msg);
-    }
+    printf_stderr("\n###!!! [%s][%s] Error: %s\n\n",
+                  isChild ? "Child" : "Parent", channelName, msg);
 }
 
 bool
 AsyncChannel::MaybeHandleError(Result code, const char* channelName)
 {
     if (MsgProcessed == code)
         return true;