Bug 1272166 - Update UI telemetry logging. r=margaret a=ritu CLOSED TREE
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 11 May 2016 17:30:34 -0700
changeset 332892 fd43bc66da8a9184f9aa7b8814393dec9b9e3be2
parent 332891 ce6407e7b5761adad379ec020d6e9298eebf2271
child 332893 9e49e1b06115a91c47b0184e535774deec4453a9
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, ritu
bugs1272166
milestone48.0a2
Bug 1272166 - Update UI telemetry logging. r=margaret a=ritu CLOSED TREE 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);