From 8aaddc110a9fcc3202d22571e954e8462c4bc03d Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Tue, 19 Dec 2017 10:34:27 -0800 Subject: Stop logging events in AOSP Change-Id: I26051c5507b436ecfe171c03127a58f0aa2c5f6c Fixes: 70844878 Test: logcat --- .../settings/intelligence/instrumentation/LocalEventLogger.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/intelligence/instrumentation/LocalEventLogger.java b/src/com/android/settings/intelligence/instrumentation/LocalEventLogger.java index 22e9eb7..395d504 100644 --- a/src/com/android/settings/intelligence/instrumentation/LocalEventLogger.java +++ b/src/com/android/settings/intelligence/instrumentation/LocalEventLogger.java @@ -22,10 +22,13 @@ import com.android.settings.intelligence.nano.SettingsIntelligenceLogProto; public class LocalEventLogger implements EventLogger { + private static final boolean SHOULD_LOG = false; private static final String TAG = "SettingsIntLogLocal"; @Override public void log(SettingsIntelligenceLogProto.SettingsIntelligenceEvent event) { - Log.i(TAG, event.toString()); + if (SHOULD_LOG) { + Log.i(TAG, event.toString()); + } } } -- cgit v1.2.3