diff options
| author | 2014-10-20 21:46:12 +0000 | |
|---|---|---|
| committer | 2014-10-20 21:46:12 +0000 | |
| commit | 6e1eb1c96680ee9b51ca3f6a4ebd29711cfb5927 (patch) | |
| tree | cc09890f0f44c6997aed3c0e6fbdf1794bdfaac2 | |
| parent | 2959231c78fb890907e4dc6cf232f1d64ef37bcf (diff) | |
| parent | aec92e2eca4b4197ac45dcde265e2797c7ea9133 (diff) | |
am aec92e2e: Merge "Disable zen log printouts by default" into lmp-sprout-dev
* commit 'aec92e2eca4b4197ac45dcde265e2797c7ea9133':
Disable zen log printouts by default
| -rw-r--r-- | services/core/java/com/android/server/notification/ZenLog.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/ZenLog.java b/services/core/java/com/android/server/notification/ZenLog.java index 6cc5e0ea91e8..e0b83de8e8b5 100644 --- a/services/core/java/com/android/server/notification/ZenLog.java +++ b/services/core/java/com/android/server/notification/ZenLog.java @@ -34,6 +34,7 @@ import java.util.Date; public class ZenLog { private static final String TAG = "ZenLog"; + private static final boolean DEBUG = Build.IS_DEBUGGABLE; private static final int SIZE = Build.IS_DEBUGGABLE ? 100 : 20; @@ -166,7 +167,7 @@ public class ZenLog { sSize++; } } - Slog.d(TAG, typeToString(type) + ": " + msg); + if (DEBUG) Slog.d(TAG, typeToString(type) + ": " + msg); } public static void dump(PrintWriter pw, String prefix) { |