Closed Bug 813850 Opened 13 years ago Closed 13 years ago

Disable console by default in release builds

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18 verified, b2g18-v1.0.0 fixed, b2g18-v1.0.1 verified)

VERIFIED FIXED
blocking-b2g tef+
Tracking Status
b2g18 --- verified
b2g18-v1.0.0 --- fixed
b2g18-v1.0.1 --- verified

People

(Reporter: dhylands, Assigned: dhylands)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

This was originally done as part of bug 794599, but bug 813791 undid that. So we need to do this properly on the gaia side of things. gaia's Android.mk sets PRODUCTION=1, so we should NOT pass in --console to settings.py when PRODUCTION=1 and we're doing a device build (it's probably fine to leave the console enabled for desktop builds).
Reminder (probably to me, but for whoever fixes this): Notify dev-b2g and dev-gaia when this bug lands. Also add the ability to override the default from B2G/.userconfig
Assignee: nobody → dhylands
So I'll ask for some feedback under exactly which conditions the console should be disabled. gaia's Makefile has this PRODUCTION variable which currently seems to be set to 1 for user and userdebug builds and set to 0 for eng builds. I have access to the TARGET_BUILD_VARIANT variable for device builds as well. So I was going to propose the if TARGET_BUILD_VARIANT == user then we turn the console off, and for all other cases we turn on. Does that sound reasonable? Or should PRODUCTION != 1 mean turn the console off?
(In reply to Dave Hylands [:dhylands] from comment #3) > Or should PRODUCTION != 1 mean turn the console off? Umm PRODUCTION == 1 mean turn console off?
We should turn this off for "user" builds only, since tests are run against userdebug and we want to see console output there by default.
Attachment #709959 - Flags: review?(jones.chris.g)
Comment on attachment 709959 [details] [diff] [review] Disables console for VARIANT=user builds And oh yeah - this is modifying gaia/Makefile
Attachment #709959 - Flags: review?(jones.chris.g) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
blocking-b2g: --- → tef?
blocking-b2g: tef? → tef+
v1-train: e312ee4ae3209edfd177353767205b114f536b81 v1.0.0: 604a41421bcae4692b07948c65d6b5ea9680bdb2
Does not make sense to create a regression issue.
Flags: in-moztrap-
Build: 20130322070202 Gecko http://hg.mozilla.org/releases/mozilla-b2g18/rev/5aacf880400b Gaia 5a31a56b96a8fc559232d35dabf20411b9c2ca1d Kernel: Dec 5th In the build above, I've verified that the option for Console is indeed OFF by default in the dev settings.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: