Closed Bug 1428508 Opened 7 years ago Closed 7 years ago

Remove the ThLog Angular service

Categories

(Tree Management :: Treeherder: Frontend, enhancement, P3)

enhancement

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?
Flags: needinfo?(wlachance)
Flags: needinfo?(emorley)
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)
I have never used ThLog so don't have a strong opinion on it. :)
Flags: needinfo?(wlachance)
Priority: -- → P3
Summary: Investigate if we should remove the service ThLog → Remove the ThLog Angular service
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: nobody → cdawson
Attachment #8952888 - Flags: review?(emorley)
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+
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.

Attachment

General

Created:
Updated:
Size: