Closed Bug 1748029 Opened 3 years ago Closed 3 years ago

Glean.js outputs a ton of logs to the console, making debugging more difficult

Categories

(Data Platform and Tools Graveyard :: Glean.js, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: brizental)

Details

Attachments

(2 files)

Attached image image.png

In the Glean Dictionary, Glean.js currently logs a lot of information to the console (especially when it encounters an error, but even during regular operation). This makes debugging other (non-Glean.js) related problems a lot harder. Is there any way we can reduce the amount of logging that happens by default?

Example screenshot on a fresh install.

The big log message with the ping payload is turned on by the setLogPings API, which I left always turned on in development mode for the Glean Dictionary. I'll change that so it needs to be explicitly turned on when debugging Glean itself: https://github.com/mozilla/glean-dictionary/blob/main/src/telemetry/index.js#L43-L46

Glean.js does log a bunch of messages by default though. Removing the ping logging will make it much less annoying, but we can reassess this in case the default log messages are still too much.

Assignee: nobody → brizental
Priority: -- → P1
Attached file GitHub Pull Request
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Product: Data Platform and Tools → Data Platform and Tools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: