gregglind / micropilot

Lightweight event monitoring and observation in Firefox addons.
http://gregglind.github.com/micropilot/
4 stars 2 forks source link

logtoconsole pref #6

Closed gregglind closed 11 years ago

gregglind commented 11 years ago

I like having this be a user facing pref... but the name is bad.

I also like having studies know if they should log.

These two desires seem to intersect badly....

Suggested fix:

in mircopilot

let {prefs} = require('simple-prefs')
if (prefs.micropilotlog === undefined) { prefs.micropilotlog = false }
gregglind commented 11 years ago

Also, console.log is quiet in compiled xpis...

require("simple-prefs").prefs["sdk.console.logLevel"] = 0