I figured we would do that as-needed and we could probably just add a
"log" getter to MozLoopService which MozLoopAPI and the DOM API could use.
MattN
On 9/26/14 7:50 AM, Jared Wein wrote:
Sorry, meant to say "what are the plans for adding this to _MozLoopAPI.jsm_ and the
other Loop-related files?"
- jared
----- Original Message -----
From: "Jared Wein" <[email protected]>
To: "Matthew N." <[email protected]>
Cc: [email protected]
Sent: Friday, September 26, 2014 10:00:15 AM
Subject: Re: MozLoopService desktop logging is now pref-controlled
What are the plans for adding this to MozLoopService.jsm and the other
Loop-related files?
Thanks,
Jared
----- Matthew N. <[email protected]> wrote:
TL;DR: Set the pref loop.debug.loglevel to "Debug" when debugging Loop
desktop issues.
Hello,
Bug 1073027[1] landed today which adds the preference
loop.debug.loglevel to Firefox desktop in order to allow more logging to
be kept in the tree while not spamming the Browser Console for people
who don't need to know about Loop debugging info. The default value of
the preference is "Error" which matches the usual behaviour of only
leaving Cu.reportError calls in the tree for error cases. Note that a
restart is required for the change to take effect.
Interesting[2] levels in order of decreasing verbosity:
"All", "Debug", "Info", "Warn" & "Error".
I've added this new preference along with ones for Hawk and Firefox
Account logging to the Try Loop page[3].
Developers should use log.{debug,info,warn,error) methods in
MozLoopService.jsm instead of console.* from now on.
Happy debugging!
Matthew N. (:MattN)
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1073027
[2] I'm trying to stick to the intersection of Log.jsm and Console.jsm
levels as we should probably switch to Log.jsm once bug 1072687 is fixed.
[3] https://wiki.mozilla.org/Loop/Try_Loop#Client_Debugging
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media