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)
People
(Reporter: wlach, Assigned: brizental)
Details
Attachments
(2 files)
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.
Assignee | ||
Comment 1•3 years ago
|
||
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 | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Description
•