Hook up webrtc_trace logs to MOZ_LOG by default
Categories
(Core :: WebRTC, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox123 | --- | fixed |
People
(Reporter: pehrsons, Assigned: pehrsons)
References
Details
Attachments
(6 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Currently to get webrtc logs through MOZ_LOG one has to enable the webrtc_trace log module, and on about:webrtc click "Start Debug Mode".
The step that requires about:webrtc is unnecessary friction. It seems possible to avoid this.
| Assignee | ||
Comment 1•3 years ago
|
||
We should override these methods in our log sink and call StartWebrtcLog automatically if the correct log module is enabled, and if its level changes.
Comment 2•2 years ago
|
||
Most of that seems straight forward. What about the case where webrtrc_trace transitions from enabled, to disabled, and back to enabled? When we disable the underlying libwebrtc logger we won't get log messages from libwebrtc, and then won't be able to check the log level of the gecko log module. LazyLogModule is final.
| Assignee | ||
Comment 3•2 years ago
|
||
If it changes on the fly it must have been set by pref, and in that case we can listen to changes to that pref. The pref being "logging.webrtc_trace".
Either that or we could invent a way in which LogModule can tell us its configuration changed.
Comment 4•2 years ago
|
||
We need to be able to observe the LogModule's level so that we can adjust libwebrtc's log level to match. This seems like a problem that would be common to log adapters to systems which do not delegate the decision of whether or not a particular log line is executed. Perhaps it would be better if libwebrtc's logging system did that.
On monitoring a pref: https://searchfox.org/mozilla-central/rev/44a7ece8626d9bc418da7d13341f9163817d199b/modules/libpref/Preferences.h#234 looks promising.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 5•2 years ago
|
||
| Assignee | ||
Comment 6•2 years ago
|
||
| Assignee | ||
Comment 7•2 years ago
|
||
| Assignee | ||
Comment 8•2 years ago
|
||
| Assignee | ||
Comment 9•2 years ago
|
||
| Assignee | ||
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/81bd1fa30409
https://hg.mozilla.org/mozilla-central/rev/4241d91898c9
https://hg.mozilla.org/mozilla-central/rev/b381dba39ad8
https://hg.mozilla.org/mozilla-central/rev/8d90c964a807
https://hg.mozilla.org/mozilla-central/rev/b4ec0e2be337
https://hg.mozilla.org/mozilla-central/rev/fdee7bc5d06a
Description
•