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

Commit 35a901cb authored by Jakub Rotkiewicz's avatar Jakub Rotkiewicz
Browse files

BluetoothAudioHal fix misleading log type and msg

Bug: 329809288
Flag: EXEMPT logging change only
Test: m com.android.btservices
Change-Id: Ie3edfb02a1fce89529131e7448e0a38da9299ff0
parent f4f42a30
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -331,7 +331,18 @@ bool BluetoothAudioClientInterface::UpdateAudioConfig(

  auto aidl_retval = provider_->updateAudioConfiguration(audio_config);
  if (!aidl_retval.isOk()) {
    log::error("BluetoothAudioHal failure: {}", aidl_retval.getDescription());
    if (audio_config.getTag() != transport_->GetAudioConfiguration().getTag()) {
      log::warn(
          "BluetoothAudioHal audio config type: {} doesn't "
          "match provider's audio config type: {}",
          ::aidl::android::hardware::bluetooth::audio::toString(
              audio_config.getTag()),
          ::aidl::android::hardware::bluetooth::audio::toString(
              transport_->GetAudioConfiguration().getTag()));
    } else {
      log::warn("BluetoothAudioHal is not ready: {} ",
                aidl_retval.getDescription());
    }
  }
  return true;
}