Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1ef2447 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Clean up some logging to make it more useful to debug.

Change-Id: Ic30210ea6886b1c4630d7671a4b01736512e9da8
parent a46f2fb1
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -253,6 +253,7 @@ class BluetoothEventLoop {
            // we filled up our cache.
            // we filled up our cache.
            mBluetoothService.getAllProperties();
            mBluetoothService.getAllProperties();
        }
        }
        log("Property Changed: " + propValues[0] + " : " + propValues[1]);
        String name = propValues[0];
        String name = propValues[0];
        if (name.equals("Name")) {
        if (name.equals("Name")) {
            mBluetoothService.setProperty(name, propValues[1]);
            mBluetoothService.setProperty(name, propValues[1]);
@@ -321,10 +322,9 @@ class BluetoothEventLoop {
            Log.e(TAG, "onDevicePropertyChanged: Address of the remote device in null");
            Log.e(TAG, "onDevicePropertyChanged: Address of the remote device in null");
            return;
            return;
        }
        }
        if (DBG) {
        log("Device property changed: " + address + " property: "
        log("Device property changed: " + address + " property: "
            + name + " value: " + propValues[1]);
            + name + " value: " + propValues[1]);
        }

        BluetoothDevice device = mAdapter.getRemoteDevice(address);
        BluetoothDevice device = mAdapter.getRemoteDevice(address);
        if (name.equals("Name")) {
        if (name.equals("Name")) {
            mBluetoothService.setRemoteDeviceProperty(address, name, propValues[1]);
            mBluetoothService.setRemoteDeviceProperty(address, name, propValues[1]);
+1 −1
Original line number Original line Diff line number Diff line
@@ -813,7 +813,7 @@ static DBusHandlerResult event_filter(DBusConnection *conn, DBusMessage *msg,
        return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
        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_interface(msg), dbus_message_get_member(msg),
        dbus_message_get_path(msg));
        dbus_message_get_path(msg));