From f56513f6bae56eb96147dc1783a214326c1b43c3 Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Mon, 13 Jul 2015 10:26:22 -0700 Subject: Hide spammy WidgetModel log behind a DEBUG flag Change-Id: I0119855655516d9fdc114334a974b8766aabf674 --- src/com/android/launcher3/model/WidgetsModel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/launcher3/model') diff --git a/src/com/android/launcher3/model/WidgetsModel.java b/src/com/android/launcher3/model/WidgetsModel.java index 09a3242b5..15d3717cd 100644 --- a/src/com/android/launcher3/model/WidgetsModel.java +++ b/src/com/android/launcher3/model/WidgetsModel.java @@ -122,8 +122,10 @@ public class WidgetsModel { continue; } if (mAppFilter != null && !mAppFilter.shouldShowApp(componentName)) { - Log.d(TAG, String.format("%s is filtered and not added to the widget tray.", + if (DEBUG) { + Log.d(TAG, String.format("%s is filtered and not added to the widget tray.", packageName)); + } continue; } -- cgit v1.2.3