summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Brian Muramatsu <btmura@google.com> 2012-08-08 17:32:21 -0700
committer Brian Muramatsu <btmura@google.com> 2012-08-09 17:14:13 -0700
commit1715cb36d9231f08f244ec6c0a373f1a46d66cc7 (patch)
treea7f26aaa988919f6e6d965f7bc0f4d6c25feddf0
parent7c46e4380e6c50c30aad80807f87af25f000c7ff (diff)
Control GPS logging with property
This allows users of the PDK to debug GPS issues. Change-Id: I4aff12e124f4264abd1a0be012df4c431044189c
-rwxr-xr-xservices/java/com/android/server/location/GpsLocationProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/location/GpsLocationProvider.java b/services/java/com/android/server/location/GpsLocationProvider.java
index 8e75d9447eeb..bd7668b75aa0 100755
--- a/services/java/com/android/server/location/GpsLocationProvider.java
+++ b/services/java/com/android/server/location/GpsLocationProvider.java
@@ -81,8 +81,8 @@ public class GpsLocationProvider implements LocationProviderInterface {
private static final String TAG = "GpsLocationProvider";
- private static final boolean DEBUG = false;
- private static final boolean VERBOSE = false;
+ private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
+ private static final boolean VERBOSE = Log.isLoggable(TAG, Log.VERBOSE);
// these need to match GpsPositionMode enum in gps.h
private static final int GPS_POSITION_MODE_STANDALONE = 0;