Title: [212847] trunk/Source
Revision
212847
Author
[email protected]
Date
2017-02-22 12:57:18 -0800 (Wed, 22 Feb 2017)

Log Message

[WebRTC] Disable libwebrtc stderr logging in release mode
https://bugs.webkit.org/show_bug.cgi?id=168734

Patch by Youenn Fablet <[email protected]> on 2017-02-22
Reviewed by Tim Horton.

Source/ThirdParty/libwebrtc:

* Source/webrtc/base/logging.h:

Source/WebCore:

No change of behavior.

* platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
(WebCore::initializePeerConnectionFactoryAndThreads):

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (212846 => 212847)


--- trunk/Source/ThirdParty/libwebrtc/ChangeLog	2017-02-22 20:46:32 UTC (rev 212846)
+++ trunk/Source/ThirdParty/libwebrtc/ChangeLog	2017-02-22 20:57:18 UTC (rev 212847)
@@ -1,3 +1,12 @@
+2017-02-22  Youenn Fablet  <[email protected]>
+
+        [WebRTC] Disable libwebrtc stderr logging in release mode
+        https://bugs.webkit.org/show_bug.cgi?id=168734
+
+        Reviewed by Tim Horton.
+
+        * Source/webrtc/base/logging.h:
+
 2017-02-21  Youenn Fablet  <[email protected]>
 
         [WebRTC][Mac] Activate libwebrtc

Modified: trunk/Source/ThirdParty/libwebrtc/Source/webrtc/base/logging.h (212846 => 212847)


--- trunk/Source/ThirdParty/libwebrtc/Source/webrtc/base/logging.h	2017-02-22 20:46:32 UTC (rev 212846)
+++ trunk/Source/ThirdParty/libwebrtc/Source/webrtc/base/logging.h	2017-02-22 20:57:18 UTC (rev 212847)
@@ -59,6 +59,7 @@
 
 #include "webrtc/base/basictypes.h"
 #include "webrtc/base/constructormagic.h"
+#include "webrtc/base/export.h"
 #include "webrtc/base/thread_annotations.h"
 
 namespace rtc {
@@ -137,7 +138,7 @@
   virtual void OnLogMessage(const std::string& message) = 0;
 };
 
-class LogMessage {
+class WEBRTC_EXPORT LogMessage {
  public:
   LogMessage(const char* file, int line, LoggingSeverity sev,
              LogErrorContext err_ctx = ERRCTX_NONE, int err = 0,

Modified: trunk/Source/WebCore/ChangeLog (212846 => 212847)


--- trunk/Source/WebCore/ChangeLog	2017-02-22 20:46:32 UTC (rev 212846)
+++ trunk/Source/WebCore/ChangeLog	2017-02-22 20:57:18 UTC (rev 212847)
@@ -1,3 +1,15 @@
+2017-02-22  Youenn Fablet  <[email protected]>
+
+        [WebRTC] Disable libwebrtc stderr logging in release mode
+        https://bugs.webkit.org/show_bug.cgi?id=168734
+
+        Reviewed by Tim Horton.
+
+        No change of behavior.
+
+        * platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
+        (WebCore::initializePeerConnectionFactoryAndThreads):
+
 2017-02-22  Jer Noble  <[email protected]>
 
         MediaStreamSourceNode never receives audio from MockRealtimeAudioSourceMac.

Modified: trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp (212846 => 212847)


--- trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp	2017-02-22 20:46:32 UTC (rev 212846)
+++ trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp	2017-02-22 20:57:18 UTC (rev 212847)
@@ -84,6 +84,9 @@
 
 static void initializePeerConnectionFactoryAndThreads()
 {
+#if defined(NDEBUG)
+    rtc::LogMessage::LogToDebug(rtc::LS_NONE);
+#endif
     auto& factoryAndThreads = staticFactoryAndThreads();
 
     ASSERT(!factoryAndThreads.factory);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to