139
edits
(→Signaling (SDP offer/answer handling): Add caveat about sandboxing) |
(Replacing Dead Links) |
||
Line 2: | Line 2: | ||
=== Note about NSPR and MOZ_LOG === | === Note about NSPR and MOZ_LOG === | ||
NSPR (NSPR_LOG_MODULES) has been deprecated in favor of [https:// | NSPR (NSPR_LOG_MODULES) has been deprecated in favor of [https://firefox-source-docs.mozilla.org/xpcom/logging.html MOZ_LOG]. NSPR_LOG_MODULES does not work with the libwebrtc logging, so just use MOZ_LOG. | ||
In Firefox 54 and later, you can use about:networking, and select the Logging option, to change MOZ_LOG/MOZ_LOG_FILE options on the fly -- without restarting the browser. Also, you can use about:config and set any log option by adding a "logging.xxxxx" variable (right-click -> New), and set it to an integer value of 0-5. | In Firefox 54 and later, you can use about:networking, and select the Logging option, to change MOZ_LOG/MOZ_LOG_FILE options on the fly -- without restarting the browser. Also, you can use about:config and set any log option by adding a "logging.xxxxx" variable (right-click -> New), and set it to an integer value of 0-5. | ||
Line 15: | Line 15: | ||
=== Signaling (SDP offer/answer handling) === | === Signaling (SDP offer/answer handling) === | ||
This uses the normal Mozilla [https:// | This uses the normal Mozilla [https://firefox-source-docs.mozilla.org/xpcom/logging.html MOZ_LOG] infrastructure, which uses a comma-separated list of modules, each one with its indicated [https://firefox-source-docs.mozilla.org/xpcom/logging.html MOZ log level]. For WebRTC, you'll be most interested in | ||
* MOZ_LOG=signaling:5,mtransport:5 | * MOZ_LOG=signaling:5,mtransport:5 | ||
* MOZ_LOG_FILE=/path/to/moz.log (if you don't want the default stderr, but be aware that this may not work due to sandboxing) | * MOZ_LOG_FILE=/path/to/moz.log (if you don't want the default stderr, but be aware that this may not work due to sandboxing) | ||
You can also add ",timestamp" to that list if you want each log message to include timestamps. Other options are available as well, and they are detailed under "Description" on the [https:// | You can also add ",timestamp" to that list if you want each log message to include timestamps. Other options are available as well, and they are detailed under "Description" on the [https://firefox-source-docs.mozilla.org/xpcom/logging.html MOZ LOG MODULES] MDN page. | ||
=== getUserMedia and others === | === getUserMedia and others === |
edits