diff options
author | Sascha Haeberling <haeberling@google.com> | 2014-03-28 17:14:16 -0700 |
---|---|---|
committer | Ed Heyl <edheyl@google.com> | 2014-06-18 10:24:44 -0700 |
commit | 102540727e51003c352e82349c339929a0c4be7e (patch) | |
tree | c073e6724e31805c2b03e04b0a811ba2dd952ae2 /camera2/portability/src/com/android/ex/camera2/portability/debug | |
parent | b35ea0d2d494ba7668b0183dfc906cde0708bc55 (diff) | |
download | android_frameworks_ex-102540727e51003c352e82349c339929a0c4be7e.tar.gz android_frameworks_ex-102540727e51003c352e82349c339929a0c4be7e.tar.bz2 android_frameworks_ex-102540727e51003c352e82349c339929a0c4be7e.zip |
If debug is on, log everything.
Change-Id: I706874c9ea1b03c2fd9f987cda9581f72883c914
Diffstat (limited to 'camera2/portability/src/com/android/ex/camera2/portability/debug')
-rw-r--r-- | camera2/portability/src/com/android/ex/camera2/portability/debug/Log.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camera2/portability/src/com/android/ex/camera2/portability/debug/Log.java b/camera2/portability/src/com/android/ex/camera2/portability/debug/Log.java index a9e6d91..daac7e6 100644 --- a/camera2/portability/src/com/android/ex/camera2/portability/debug/Log.java +++ b/camera2/portability/src/com/android/ex/camera2/portability/debug/Log.java @@ -196,7 +196,8 @@ public class Log { private static boolean isLoggable(Tag tag, int level) { try { - return android.util.Log.isLoggable(tag.toString(), level); + return CurrentConfig.get().isDebugging() + || android.util.Log.isLoggable(tag.toString(), level); } catch (IllegalArgumentException ex) { e(TAG, "Tag too long:" + tag); return false; |