summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
diff options
context:
space:
mode:
authorAndy Huibers <andyhuibers@google.com>2015-02-05 06:23:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-05 06:23:14 +0000
commit5d54ef4379592758a28c225347029096c8259b13 (patch)
treeb5f42d1afc1104db6908b486c0a97356ebb2956d /src/com/android/camera/util
parentdfe19d2fedee0a3af39d335402ff9dc7e774e8bd (diff)
parentd119b0ab2f700de33259ddc2ece7fb3cc1f305a2 (diff)
downloadandroid_packages_apps_Camera2-5d54ef4379592758a28c225347029096c8259b13.tar.gz
android_packages_apps_Camera2-5d54ef4379592758a28c225347029096c8259b13.tar.bz2
android_packages_apps_Camera2-5d54ef4379592758a28c225347029096c8259b13.zip
Merge "Control some chatty logging with a boolean." into ub-camera-haleakala
Diffstat (limited to 'src/com/android/camera/util')
-rw-r--r--src/com/android/camera/util/AndroidServices.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/camera/util/AndroidServices.java b/src/com/android/camera/util/AndroidServices.java
index a6500c6d7..6c1d4f87e 100644
--- a/src/com/android/camera/util/AndroidServices.java
+++ b/src/com/android/camera/util/AndroidServices.java
@@ -42,6 +42,7 @@ import com.android.camera.debug.Log.Tag;
*/
public class AndroidServices {
private static Tag TAG = new Tag("AndroidServices");
+ private static final boolean DEBUG_LOGGING = false;
private static class Singleton {
private static final AndroidServices INSTANCE =
@@ -125,8 +126,10 @@ public class AndroidServices {
try {
long start = System.currentTimeMillis();
Object result = mContext.getSystemService(service);
- Log.i(TAG, "Provided system service " + service + " in " +
- (System.currentTimeMillis() - start) + "ms");
+ if (DEBUG_LOGGING) {
+ Log.i(TAG, "Provided system service " + service + " in " +
+ (System.currentTimeMillis() - start) + "ms");
+ }
return result;
} catch (Exception e) {
return null;