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

Commit c7a3b699 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski Committed by Łukasz Rymanowski
Browse files

LeAudio: Enable essential audio context logs

This will improve triaging any potential context type related
issues when debug logs are not enabled.

Bug: 295972694
Test: atest bluetooth_le_audio_client_test
Test: manual
Tag: #feature

Change-Id: Ia591e1d32c2efcdef0c29312f316d6004f03ae09
parent fb6449ed
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4734,7 +4734,7 @@ class LeAudioClientImpl : public LeAudioClient {
              group, le_audio::types::kLeAudioDirectionSource) &&
          (group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING);
      if (has_audio_source_configured) {
        LOG_DEBUG(
        LOG_INFO(
            "Audio source is already available in the current configuration "
            "context in %s. Not switching to %s right now.",
            ToString(configuration_context_type_).c_str(),
@@ -4759,7 +4759,7 @@ class LeAudioClientImpl : public LeAudioClient {
      LeAudioDeviceGroup* group, LeAudioContextType new_configuration_context,
      BidirectionalPair<AudioContexts> remote_contexts) {
    if (new_configuration_context != configuration_context_type_) {
      LOG_DEBUG("Changing configuration context from %s to %s",
      LOG_INFO("Checking whether to change configuration context from %s to %s",
               ToString(configuration_context_type_).c_str(),
               ToString(new_configuration_context).c_str());

@@ -4776,7 +4776,7 @@ class LeAudioClientImpl : public LeAudioClient {
    }

    if (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) {
      LOG_DEBUG(
      LOG_INFO(
          "The %s configuration did not change. Updating the metadata to "
          "sink=%s, source=%s",
          ToString(configuration_context_type_).c_str(),
+3 −3
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ AudioContexts GetAudioContextsFromSinkMetadata(
        "sink device. This may result in voice back channel malfunction.");
  }

  LOG_DEBUG("Allowed contexts from sink metadata: %s (0x%08hx)",
  LOG_INFO("Allowed contexts from sink metadata: %s (0x%08hx)",
           bluetooth::common::ToString(all_track_contexts).c_str(),
           all_track_contexts.value());
  return all_track_contexts;