Closed
Bug 813850
Opened 13 years ago
Closed 13 years ago
Disable console by default in release builds
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(blocking-b2g:tef+, b2g18 verified, b2g18-v1.0.0 fixed, b2g18-v1.0.1 verified)
VERIFIED
FIXED
| blocking-b2g | tef+ |
People
(Reporter: dhylands, Assigned: dhylands)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
|
1.68 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
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).
| Assignee | ||
Comment 1•13 years ago
|
||
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 | ||
Updated•13 years ago
|
Assignee: nobody → dhylands
| Assignee | ||
Comment 3•13 years ago
|
||
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?
| Assignee | ||
Comment 4•13 years ago
|
||
(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.
| Assignee | ||
Comment 6•13 years ago
|
||
Attachment #709959 -
Flags: review?(jones.chris.g)
| Assignee | ||
Comment 7•13 years ago
|
||
Comment on attachment 709959 [details] [diff] [review]
Disables console for VARIANT=user builds
And oh yeah - this is modifying gaia/Makefile
Updated•13 years ago
|
Attachment #709959 -
Flags: review?(jones.chris.g) → review+
| Assignee | ||
Comment 8•13 years ago
|
||
Merged in gaia/master branch
https://github.com/mozilla-b2g/gaia/commit/888ba530b9f4f9119add284d98d616ea8f2348f1
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•13 years ago
|
blocking-b2g: --- → tef?
Updated•13 years ago
|
Updated•13 years ago
|
Keywords: dev-doc-complete
Comment 9•13 years ago
|
||
v1-train: e312ee4ae3209edfd177353767205b114f536b81
v1.0.0: 604a41421bcae4692b07948c65d6b5ea9680bdb2
Comment 11•12 years ago
|
||
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
status-b2g18-v1.0.1:
--- → verified
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•