Closed Bug 1097587 Opened 10 years ago Closed 10 years ago

UITour: Add some logging to ease debugging

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal
Points:
2

Tracking

()

RESOLVED FIXED
Firefox 36
Iteration:
36.3
Tracking Status
firefox35 --- fixed
firefox36 --- fixed

People

(Reporter: MattN, Assigned: MattN)

References

Details

Attachments

(1 file, 2 obsolete files)

UITour is complex enough that it could use some debug logging to trace what is happening.

I have a patch using console.jsm so that we get rich output for the various Objects which are logged (instead of "[Object object]"). I converted the existing reportError usage so they also get the logging prefix.
Flags: qe-verify-
Flags: firefox-backlog+
Attached file MozReview Request: bz://1097587/MattN (obsolete) —
Attachment #8521331 - Flags: review?(bmcbride)
/r/493 - Bug 1097587 - UITour: Add some logging to ease debugging. r=Unfocused

Pull down this commit:

hg pull review -r e4966c23032b80955a299ac98a3ab7b708a8c8b6
/r/493 - Bug 1097587 - UITour: Add some logging to ease debugging. r=Unfocused

Pull down this commit:

hg pull review -r e4966c23032b80955a299ac98a3ab7b708a8c8b6
/r/493 - Bug 1097587 - UITour: Add some logging to ease debugging. r=Unfocused

Pull down this commit:

hg pull review -r 82a923d03533d5f68d824a88c7ff0c3538992bc4
Attached patch Old WiP (obsolete) — Splinter Review
I had this old patch sitting around, that adds logging to a few more places that I found useful. You may wish to add these to your patch.
https://reviewboard.mozilla.org/r/493/#review227

Happy with this as-is, but extra happy if you add to it :)

::: browser/modules/UITour.jsm
(Diff revision 2)
> -        }).then(null, Cu.reportError);
> +        }).then(null, log.error);

Bonus points if you convert cases of this to use .catch()
Attachment #8521331 - Flags: review?(bmcbride) → review+
Thanks. I added more logging from your patch and switched to .catch

https://hg.mozilla.org/integration/fx-team/rev/8b35d3ba140d
Flags: in-testsuite-
Whiteboard: [fixed-in-fx-team]
Attachment #8521922 - Attachment is obsolete: true
Comment on attachment 8521331 [details]
MozReview Request: bz://1097587/MattN

Approval Request Comment
[Feature/regressing bug #]: Additional logging will help with bug 1084075 for 35.
[User impact if declined]: Developers will be slower at developing the tour and therefore the tour may not be as polished.
[Describe test coverage new/current, TBPL]: Logging-only chages
[Risks and why]: Low risk, logging-only changes that will help with debugging problems => better bug reports and faster bug fixes.
[String/UUID change made/needed]: None
Attachment #8521331 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/8b35d3ba140d
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
Attachment #8521331 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Needs rebasing for Aurora uplift.
Flags: needinfo?(MattN+bmo)
Comment on attachment 8521331 [details]
MozReview Request: bz://1097587/MattN

Matt says he isn't going to have time to rebase this any time soon. Given Friday's uplift, clearing the approval to get it off the radar for now.
Flags: needinfo?(MattN+bmo)
Attachment #8521331 - Flags: approval-mozilla-aurora+
Flags: needinfo?(MattN+bmo)
Comment on attachment 8521331 [details]
MozReview Request: bz://1097587/MattN

[Triage Comment]

Needed for Fx35 Hello tour, no unusual risk.

(Already on aurora via the trains, so only beta approval is needed.)
Attachment #8521331 - Flags: approval-mozilla-beta+
Still needs rebasing per comment 11...
Attachment #8521331 - Attachment is obsolete: true
Attachment #8618607 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: