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

