Title: [283157] trunk/Source/WebKit
Revision
283157
Author
[email protected]
Date
2021-09-27 22:17:12 -0700 (Mon, 27 Sep 2021)

Log Message

Avoid building log messages when IPCMessages log stream is off
https://bugs.webkit.org/show_bug.cgi?id=230878
<rdar://problem/83605670>

Reviewed by Alex Christensen.

* Platform/IPC/HandleMessage.h:
(IPC::logMessageImpl):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (283156 => 283157)


--- trunk/Source/WebKit/ChangeLog	2021-09-28 00:49:06 UTC (rev 283156)
+++ trunk/Source/WebKit/ChangeLog	2021-09-28 05:17:12 UTC (rev 283157)
@@ -1,3 +1,14 @@
+2021-09-27  Cameron McCormack  <[email protected]>
+
+        Avoid building log messages when IPCMessages log stream is off
+        https://bugs.webkit.org/show_bug.cgi?id=230878
+        <rdar://problem/83605670>
+
+        Reviewed by Alex Christensen.
+
+        * Platform/IPC/HandleMessage.h:
+        (IPC::logMessageImpl):
+
 2021-09-27  Jean-Yves Avenard  <[email protected]>
 
         Vorbis decoder can't be instantiated - Remove workaround added in bug 228139

Modified: trunk/Source/WebKit/Platform/IPC/HandleMessage.h (283156 => 283157)


--- trunk/Source/WebKit/Platform/IPC/HandleMessage.h	2021-09-28 00:49:06 UTC (rev 283156)
+++ trunk/Source/WebKit/Platform/IPC/HandleMessage.h	2021-09-28 05:17:12 UTC (rev 283157)
@@ -74,6 +74,9 @@
 void logMessageImpl(const Connection& connection, MessageName messageName, const ArgsTuple& args, std::index_sequence<ArgsIndex...>)
 {
 #if !LOG_DISABLED
+    if (LOG_CHANNEL(IPCMessages).state != WTFLogChannelState::On)
+        return;
+
     auto stream = textStreamForLogging(connection, messageName, ForReply::No);
 
     if (auto argumentDescriptions = messageArgumentDescriptions(messageName))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to