Skip to content

Commit

Permalink
Bug 1838211 - Add presets for cookie, websocket, and Http3 logging, r…
Browse files Browse the repository at this point in the history
…=necko-reviewers,fluent-reviewers,valentin,flod

Differential Revision: https://phabricator.services.mozilla.com/D181993
  • Loading branch information
KershawChang committed Jun 26, 2023
1 parent 19e943f commit bf87e86
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions netwerk/docs/http/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ easier to analyze.
exact same format as the MOZ_LOG environment variable (see below).
Generally the default list is OK, unless a Mozilla developer has told
you to modify it.

* For cookie issues, use presets ``Cookies``
* For WebSocket issues, use presets ``WebSockets``
* For HTTP/3 or QUIC issues, use presets ``HTTP/3``
* For other networking issues, use presets ``Networking``

#. Click on Start Logging.
#. Reproduce the bug (i.e. go to the web site that is broken for you and
make the bug happen in the browser)
Expand All @@ -55,6 +61,12 @@ easier to analyze.
#. Pat yourself on the back--a job well done! Thanks for helping us
debug Firefox.

.. note::

**Note:** The log may include sensitive data such as URLs and cookies.
To protect your privacy, we kindly request you to send the log file or
the profiler link directly and confidentially to [email protected].

Logging HTTP activity by manually setting environment variables
---------------------------------------------------------------

Expand Down
23 changes: 23 additions & 0 deletions toolkit/content/aboutLogging.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,29 @@ const gLoggingPresets = {
},
profilerPreset: "networking",
},
cookie: {
modules: "timestamp,sync,nsHttp:5,cache2:5,cookie:5",
l10nIds: {
label: "about-logging-preset-networking-cookie-label",
description: "about-logging-preset-networking-cookie-description",
},
},
websocket: {
modules:
"timestamp,sync,nsHttp:5,nsWebSocket:5,nsSocketTransport:5,nsHostResolver:5",
l10nIds: {
label: "about-logging-preset-networking-websocket-label",
description: "about-logging-preset-networking-websocket-description",
},
},
http3: {
modules:
"timestamp,sync,nsHttp:5,nsSocketTransport:5,nsHostResolver:5,neqo_http3::*:5,neqo_transport::*:5",
l10nIds: {
label: "about-logging-preset-networking-http3-label",
description: "about-logging-preset-networking-http3-description",
},
},
"media-playback": {
modules:
"HTMLMediaElement:4,HTMLMediaElementEvents:4,cubeb:5,PlatformDecoderModule:5,AudioSink:5,AudioSinkWrapper:5,MediaDecoderStateMachine:4,MediaDecoder:4,MediaFormatReader:5",
Expand Down
6 changes: 6 additions & 0 deletions toolkit/locales/en-US/toolkit/about/aboutLogging.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ about-logging-with-profiler-stacks-checkbox = Enable stack traces for log messag

about-logging-preset-networking-label = Networking
about-logging-preset-networking-description = Log modules to diagnose networking issues
about-logging-preset-networking-cookie-label = Cookies
about-logging-preset-networking-cookie-description = Log modules to diagnose cookie issues
about-logging-preset-networking-websocket-label = WebSockets
about-logging-preset-networking-websocket-description = Log modules to diagnose WebSocket issues
about-logging-preset-networking-http3-label = HTTP/3
about-logging-preset-networking-http3-description = Log modules to diagnose HTTP/3 and QUIC issues
about-logging-preset-media-playback-label = Media playback
about-logging-preset-media-playback-description = Log modules to diagnose media playback issues (not video-conferencing issues)
about-logging-preset-webrtc-label = WebRTC
Expand Down

0 comments on commit bf87e86

Please sign in to comment.