Clean up some logging to make it more useful to debug.
Change-Id: Ic30210ea6886b1c4630d7671a4b01736512e9da8
diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java
index ec6ca7d..4f56281 100644
--- a/core/java/android/server/BluetoothEventLoop.java
+++ b/core/java/android/server/BluetoothEventLoop.java
@@ -253,6 +253,7 @@
// we filled up our cache.
mBluetoothService.getAllProperties();
}
+ log("Property Changed: " + propValues[0] + " : " + propValues[1]);
String name = propValues[0];
if (name.equals("Name")) {
mBluetoothService.setProperty(name, propValues[1]);
@@ -321,10 +322,9 @@
Log.e(TAG, "onDevicePropertyChanged: Address of the remote device in null");
return;
}
- if (DBG) {
- log("Device property changed: " + address + " property: "
- + name + " value: " + propValues[1]);
- }
+ log("Device property changed: " + address + " property: "
+ + name + " value: " + propValues[1]);
+
BluetoothDevice device = mAdapter.getRemoteDevice(address);
if (name.equals("Name")) {
mBluetoothService.setRemoteDeviceProperty(address, name, propValues[1]);
diff --git a/core/jni/android_server_BluetoothEventLoop.cpp b/core/jni/android_server_BluetoothEventLoop.cpp
index a9b91b04..b0ba695 100644
--- a/core/jni/android_server_BluetoothEventLoop.cpp
+++ b/core/jni/android_server_BluetoothEventLoop.cpp
@@ -813,7 +813,7 @@
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
- LOGE("%s: Received signal %s:%s from %s", __FUNCTION__,
+ LOGV("%s: Received signal %s:%s from %s", __FUNCTION__,
dbus_message_get_interface(msg), dbus_message_get_member(msg),
dbus_message_get_path(msg));