summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-05-08 14:43:15 -0700
committerztenghui <ztenghui@google.com>2013-05-08 16:49:49 -0700
commitd06573076a50d10038aea574529e02a190e93150 (patch)
tree03076deed5c634e23d79f36a3040c699b0455894 /src
parentbb70a7a3392a798e3af39479cf05f5bd1748ba89 (diff)
downloadandroid_packages_apps_Snap-d06573076a50d10038aea574529e02a190e93150.tar.gz
android_packages_apps_Snap-d06573076a50d10038aea574529e02a190e93150.tar.bz2
android_packages_apps_Snap-d06573076a50d10038aea574529e02a190e93150.zip
Fix the verbose log
Now use adb shell log.tag.BasicRepresentation VERBOSE to turn on the logging. bug:8771541 Change-Id: Ib9e1e44dbbd4e46798226d8ab5dc7365e8a90e27
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java
index 28ccf7d8f..4d0651edb 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java
@@ -16,19 +16,22 @@
package com.android.gallery3d.filtershow.filters;
-import com.android.gallery3d.app.Log;
+
+import android.util.Log;
+
import com.android.gallery3d.filtershow.controller.Control;
import com.android.gallery3d.filtershow.controller.FilterView;
import com.android.gallery3d.filtershow.controller.Parameter;
import com.android.gallery3d.filtershow.controller.ParameterInteger;
public class FilterBasicRepresentation extends FilterRepresentation implements ParameterInteger {
- private static final String LOGTAG = "FilterBasicRepresentation";
+ private static final String LOGTAG = "FilterBasicRep";
private int mMinimum;
private int mValue;
private int mMaximum;
private int mDefaultValue;
private int mPreviewValue;
+ private boolean mLogVerbose = Log.isLoggable(LOGTAG, Log.VERBOSE);
public FilterBasicRepresentation(String name, int minimum, int value, int maximum) {
super(name);
@@ -48,7 +51,9 @@ public class FilterBasicRepresentation extends FilterRepresentation implements P
representation.setMinimum(getMinimum());
representation.setMaximum(getMaximum());
representation.setValue(getValue());
- Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">");
+ if (mLogVerbose) {
+ Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">");
+ }
return representation;
}