Closed
Bug 1065518
Opened 10 years ago
Closed 10 years ago
Turn off geo.wifi.logging.enabled by default (silencing "*** WIFI GEO:" terminal-spam)
Categories
(Core :: DOM: Geolocation, defect)
Core
DOM: Geolocation
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(1 file)
1.17 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Start nightly build from the terminal.
2. Visit http://html5demos.com/geo and click "share location"
ACTUAL RESULTS: A bunch of logging appears in my terminal:
{
*** WIFI GEO: startup called.
*** WIFI GEO: Use request cache:false reason:No cached data
*** WIFI GEO: Sending request
*** WIFI GEO: sending {"wifiAccessPoints":[]}
*** WIFI GEO: gls returned status: 404 --> {"error":{"errors":[{"domain":"geolocation","reason":"notFound","message":"Not Found"}],"code":404,"message":"Not Found"}}
*** WIFI GEO: Use request cache:false reason:No cached data
*** WIFI GEO: Sending request
*** WIFI GEO: sending {}
*** WIFI GEO: gls returned status: 404 --> {"error":{"errors":[{"domain":"geolocation","reason":"notFound","message":"Not Found"}],"code":404,"message":"Not Found"}}
*** WIFI GEO: shutdown called
}
EXPECTED RESULTS: no logging, unless I explicitly asked for it. (Firefox's terminal-output should be quiet, by default.)
It looks like this logging is controlled by the pref "geo.wifi.logging.enabled", which was made on-by-default in Nightly/Aurora builds, apparently because we needed it to debug some issue back in bug 977725.
Doug / Fabrice, can we turn this pref off (by default) in Nightly builds now? I'm not sure what value we get from logging to the terminal every time a user triggers some geolocation stuff, unless they're specifically wanting to diagnose something (in which case they can turn on the pref and opt-in to the logging).
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(dougt)
Reporter | ||
Comment 1•10 years ago
|
||
The pref lives here, BTW:
>1640 #ifdef RELEASE_BUILD
>1641 pref("geo.wifi.logging.enabled", false);
>1642 #else
>1643 pref("geo.wifi.logging.enabled", true);
>1644 #endif
http://mxr.mozilla.org/mozilla-central/source/browser/app/profile/firefox.js?rev=b074336ad3f1#1643
Also: based on bug 977725 comment 8 ("I removed the logging preference."), I wonder if these pref lines weren't intended to actually land....
It looks like the previous revision of the patch had these lines in b2g.js and firefox.js, and then the landed cset (with the "I removed the logging preference" comment) had the line removed from b2g.js, but not from firefox.js.
Reporter | ||
Comment 2•10 years ago
|
||
Assuming my hunch from comment 1 is right, here's a patch to remove these probably-not-indended-to-have-landed lines.
Attachment #8487346 -
Flags: review?(dougt)
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Reporter | ||
Comment 6•10 years ago
|
||
Comment on attachment 8487346 [details] [diff] [review]
fix v1: remove this chunk from firefox.js
Fabrice, maybe you can get to this before Doug does -- can we turn off this logging and make it opt-in?
(Per comment 1, I'm pretty sure it wasn't ultimately intended to land default-enabled like this.)
Attachment #8487346 -
Flags: review?(fabrice)
Updated•10 years ago
|
Attachment #8487346 -
Flags: review?(fabrice) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8487346 -
Flags: review?(dougt)
Reporter | ||
Comment 7•10 years ago
|
||
Thanks, Fabrice -- landed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3749c4d4e76b
Flags: needinfo?(dougt) → in-testsuite-
Comment 8•10 years ago
|
||
The patch actually landed and geo logging is disabled by default.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•