Closed
Bug 553112
Opened 15 years ago
Closed 15 years ago
Improved loggings for errors
Categories
(Toolkit :: Add-ons Manager, defect, P1)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla1.9.3a5
People
(Reporter: mossop, Assigned: mossop)
References
Details
(Whiteboard: [rewrite])
Attachments
(1 file)
12.62 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•15 years ago
|
||
What do you think about this as a first step (for the first trunk landing) Rob? It adds a shared logging module that all the parts use and lazily load when they first try to log. It logs out messages in the same way as the old extension manager.
I kind of want to make something all toolkit can use but maybe for now we just stick here. After the first landing I'd look at allowing exceptions and objects be passed along with the message to be included in the log output in some fashion.
Attachment #440544 -
Flags: review?(robert.bugzilla)
![]() |
||
Comment 2•15 years ago
|
||
Comment on attachment 440544 [details] [diff] [review]
patch rev 1
>diff --git a/toolkit/mozapps/extensions/AddonLogging.jsm b/toolkit/mozapps/extensions/AddonLogging.jsm
>new file mode 100644
>--- /dev/null
>+++ b/toolkit/mozapps/extensions/AddonLogging.jsm
>...
>+try {
>+ gDebugLogEnabled = Services.prefs.getBoolPref("extensions.logging.enabled");
>+}
>+catch (e) {
>+}
>+gDebugLogEnabled = true;
Do you really want this to always be true? Maybe for the initial landing?
![]() |
||
Comment 3•15 years ago
|
||
Comment on attachment 440544 [details] [diff] [review]
patch rev 1
r=me with the above fixed per in person discussion
Attachment #440544 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 4•15 years ago
|
||
landed on branch: http://hg.mozilla.org/projects/addonsmgr/rev/c7fd38eaf53c
Status: NEW → ASSIGNED
Flags: in-testsuite-
Flags: in-litmus-
Whiteboard: [rewrite] → [rewrite][fixed-in-addonsmgr][needs-landing]
Assignee | ||
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-landing] → [rewrite]
Target Milestone: --- → mozilla1.9.3a5
You need to log in
before you can comment on or make changes to this bug.
Description
•