Closed Bug 1019837 Opened 10 years ago Closed 6 years ago

[Calendar] prefs to enable logging

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mmedeiros, Unassigned)

Details

User Story

we need an option to enable logging on the calendar app without editing the source code.
:tchung asked today if we had any setting stored on "prefs.js" or hidden menu to enable logging on the calendar app so he could submit the `adb logcat`, but right now the only way to enable the logs is to edit the "apps/calendar/js/calendar.js" file and set `DEBUG` to `true`.

that would help the QA team and make our debug process simpler.
User Story: (updated)
Note that gaia already has a shared mechanism for this controlled by a pref from the developer menu of the settings app.  This would interfere with being a privileged app until scoped settings privileges are made possible.  I think there's even a logging helper or something in shared/js/

However, I would suggest only requiring a pref if you're turning on really verbose logging.  There is a class of data the email app always logs to logcat and it's at a sufficiently low rate that there's no meaningful performance hit.  It has been super useful to have this already on and always on.  There is a performance cost however (allegedly a lot of it is the logcat output call per my understanding of a comment by cjones long ago), so some balance should be struck.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.