Bug 1272166 - Update UI telemetry logging. r=margaret
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 11 May 2016 17:30:34 -0700
changeset 336460 44dc9457053b0f6ecacbc01c7d11a8b457c3cb55
parent 336459 07f2b11057670f34f67b35c9c436cc9acbee676c
child 336461 5a396ec2aeefb4db7298f2406f5132390eada6a7
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1272166
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1272166 - Update UI telemetry logging. r=margaret 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);