WebRTC's log overrides are hooked up to Chromium backwards |
||
Issue descriptionrtc::LogToDebug sets the WebRTC logging level. When WebRTC is built in Chromium, this function is overridden by webrtc_overrides to call through to logging::SetMinLogLevel. Unfortunately, WebRTC logging levels are the reverse of Chromium ones (see diagnostic_logging.h, line 52), so this does not do the right thing: it should first call WebRtcSevToChromeSev. Beware: this code is used by JNI and not tested by the WebRTC tests. In particular, if you change the signature of the override from int to what it should be, LoggingSeverity, then tests will pass but Java will have a tantrum.
,
Oct 18 2016
Background is issue 561667 , that is when this was discovered. A fix was landed in https://codereview.chromium.org/1982643002/ (together with another change) but reverted in https://codereview.chromium.org/1992243002/ ("The signature change for LogToDebug broke JNI on Android."). rtc::LogToDebug is only used in tests and in a Java example: https://cs.chromium.org/search/?q=LogMessage::LogToDebug&sq=package:chromium&type=cs hence the low prio. |
||
►
Sign in to add a comment |
||
Comment 1 by kjellander@chromium.org
, Oct 3 2016Status: Assigned (was: Untriaged)