Switch some debug level logging to regular logging in the bluetooth settings for the ease of issue triage.

Change-Id: I9b73d24eb22613f6401c31352efc516f527b30d9
Bug: N/A
This commit is contained in:
Yuanru Qian
2024-01-10 06:14:02 +00:00
parent c1c500ae67
commit 0b91cdfbaa
3 changed files with 13 additions and 21 deletions

View File

@@ -70,9 +70,8 @@ public class AvailableMediaBluetoothDeviceUpdater extends BluetoothDeviceUpdater
boolean isFilterMatched = false;
if (isDeviceConnected(cachedDevice) && isDeviceInCachedDevicesList(cachedDevice)) {
if (DBG) {
Log.d(TAG, "isFilterMatched() current audio profile : " + currentAudioProfile);
}
Log.d(TAG, "isFilterMatched() current audio profile : " + currentAudioProfile);
// If device is Hearing Aid, it is compatible with HFP and A2DP.
// It would show in Available Devices group.
if (cachedDevice.isConnectedAshaHearingAidDevice()) {
@@ -111,14 +110,12 @@ public class AvailableMediaBluetoothDeviceUpdater extends BluetoothDeviceUpdater
isFilterMatched = cachedDevice.isConnectedHfpDevice();
break;
}
if (DBG) {
Log.d(
TAG,
"isFilterMatched() device : "
+ cachedDevice.getName()
+ ", isFilterMatched : "
+ isFilterMatched);
}
Log.d(
TAG,
"isFilterMatched() device : "
+ cachedDevice.getName()
+ ", isFilterMatched : "
+ isFilterMatched);
}
return isFilterMatched;
}