Closed
Bug 1428508
Opened 7 years ago
Closed 7 years ago
Remove the ThLog Angular service
Categories
(Tree Management :: Treeherder: Frontend, enhancement, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: camd, Assigned: camd)
References
Details
Attachments
(1 file)
I created this ages ago as a way to help do more specific logging. But you need to either whitelist or blacklist components to see logging from them and, to be honest, I'm not sure it's providing any value above adding your own console.log statements while debugging.
I suspect this is just adding bloat. I could be wrong though. :) Opinions?
| Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(wlachance)
Flags: needinfo?(emorley)
Comment 1•7 years ago
|
||
Thank you for filing! Yeah I'm not sure I've ever made use of ThLog at all. After bug 1428051 the number of grep hits for 'ThLog' are certainly a lot lower. It's also possible there are existing React logging frameworks we could use should we ever need something more advanced again in the future.
Flags: needinfo?(emorley)
Comment 2•7 years ago
|
||
I have never used ThLog so don't have a strong opinion on it. :)
Flags: needinfo?(wlachance)
Updated•7 years ago
|
Blocks: treeherder-react
Priority: -- → P3
Summary: Investigate if we should remove the service ThLog → Remove the ThLog Angular service
Comment 3•7 years ago
|
||
I don't know what the best option is for replacement. Perhaps one of:
* using console.{log,error,...} directly (and disabling the AirBnB rule that forbids it)
* using https://www.npmjs.com/package/debug (TIL it supports browser usages too)
* <something else>
I think whatever we use, we should:
* keep production logging to a minimum (using New Relic JS monitoring or something like Rollbar/Sentry/Raygun for JS exception tracking seems more appropriate)
* not require a local config file (eg the NPM `debug` package supports controlling logging filters using localstorage)
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → cdawson
Comment 4•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Attachment #8952888 -
Flags: review?(emorley)
Comment 5•7 years ago
|
||
Comment on attachment 8952888 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3251
Yey more code removal! :-D
Attachment #8952888 -
Flags: review?(emorley) → review+
Comment 6•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/c422eb968dd9c21af8fd01c4ad657fa4a1967784
Bug 1428508 - Remove the ThLog Angular service (#3251)
| Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•