Bug 1272166 - Update UI telemetry logging. r=margaret a=ritu

MozReview-Commit-ID: Gzb2qdm3TuT
This commit is contained in:
Michael Comella 2016-05-11 17:30:34 -07:00
parent 993c30ba25
commit cf14182869

View File

@ -169,8 +169,11 @@ public class Telemetry {
throw new IllegalArgumentException("Expected non-null method - use Method.NONE?");
}
Log.d(LOGTAG, "SendUIEvent: event = " + eventName + " method = " + method +
" timestamp = " + timestamp + " extras = " + extras);
String logString = "SendUIEvent: event = " + eventName + " method = " + method + " timestamp = " + timestamp;
if (!AppConstants.MOZILLA_OFFICIAL) {
logString += " extras = " + extras;
}
Log.d(LOGTAG, logString);
final GeckoEvent geckoEvent = GeckoEvent.createTelemetryUIEvent(
eventName, method.toString(), timestamp, extras);
GeckoAppShell.sendEventToGecko(geckoEvent);