Closed
Bug 1874957
Opened 2 years ago
Closed 2 years ago
Add a shouldLog function to console instances created by console.createInstance
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
124 Branch
| Tracking | Status | |
|---|---|---|
| firefox124 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The current Console.sys.mjs has a shouldLog(level) function that allows code to check if a message should be logged or not.
This allows for situations where code wants to know if to log or not, or if there's a case where we want to avoid unnecessary work for a log message.
Having an equivalent available on ConsoleInstance would allow us to move more code across to it.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dc082de0e841
Add a shouldLog function to ConsoleInstance. r=dom-core,webidl,saschanaz,peterv
Comment 4•2 years ago
|
||
Backed out for causing bc failures @ browser/base/content/test/performance/browser_preferences_usage.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/9671c91b2f911688db923e6e3f152ca68f2028af
Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d2e01b74440f
Add a shouldLog function to ConsoleInstance. r=dom-core,webidl,saschanaz,peterv
Comment 7•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox124:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•