Update libwebrtc logging when WebCore WebRTC logging is updated
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Apr 2019 22:29:38 +0000 (22:29 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Apr 2019 22:29:38 +0000 (22:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=197166
<rdar://problem/50107696>

Unreviewed.

Build fix after https://trac.webkit.org/changeset/244511.

* page/Page.cpp:
(WebCore::Page::configureLoggingChannel):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244517 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp

index 6c0b2f0..c21839e 100644 (file)
@@ -1,5 +1,18 @@
 2019-04-22  Youenn Fablet  <youenn@apple.com>
 
+        Update libwebrtc logging when WebCore WebRTC logging is updated
+        https://bugs.webkit.org/show_bug.cgi?id=197166
+        <rdar://problem/50107696>
+
+        Unreviewed.
+
+        Build fix after https://trac.webkit.org/changeset/244511.
+
+        * page/Page.cpp:
+        (WebCore::Page::configureLoggingChannel):
+
+2019-04-22  Youenn Fablet  <youenn@apple.com>
+
         Cache API should return Abort error in case of putting an aborted fetch
         https://bugs.webkit.org/show_bug.cgi?id=196757
 
index d60d692..965eb47 100644 (file)
@@ -2958,8 +2958,10 @@ void Page::configureLoggingChannel(const String& channelName, WTFLogChannelState
         channel->state = state;
         channel->level = level;
 
+#if USE(LIBWEBRTC)
         if (channel == &LogWebRTC && m_mainFrame->document())
             libWebRTCProvider().setEnableLogging(!m_mainFrame->document()->sessionID().isEphemeral());
+#endif
     }
 
     chrome().client().configureLoggingChannel(channelName, state, level);