Bug 1272166 - Update UI telemetry logging. r=margaret a=ritu FIREFOX_47_0b6_BUILD1 FIREFOX_47_0b6_RELEASE
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 11 May 2016 17:30:34 -0700
changeset 378863 7d1f3450acc47025876964c1eca854ae027934f3
parent 378862 5d04ed8cec6c1ce929dc8a19804eb8a80d5ff2e8
child 378864 2253bf1d43ce569bd0f92b184a547cc103b83718
push id21011
push usermak77@bonardo.net
push dateThu, 16 Jun 2016 13:40:45 +0000
reviewersmargaret, ritu
bugs1272166
milestone47.0
Bug 1272166 - Update UI telemetry logging. r=margaret a=ritu MozReview-Commit-ID: Gzb2qdm3TuT
mobile/android/base/java/org/mozilla/gecko/Telemetry.java
--- a/mobile/android/base/java/org/mozilla/gecko/Telemetry.java
+++ b/mobile/android/base/java/org/mozilla/gecko/Telemetry.java
@@ -164,18 +164,21 @@ public class Telemetry {
      * @param method A non-null method (if null is desired, consider using Method.NONE)
      */
     private static void sendUIEvent(final String eventName, final Method method,
             final long timestamp, final String extras) {
         if (method == null) {
             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);
     }
 
     public static void sendUIEvent(final Event event, final Method method, final long timestamp,
             final String extras) {
         sendUIEvent(event.toString(), method, timestamp, extras);