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

Commit d165cac2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "leaudio: Add logs for connect/disconnect/remove"

parents 2933dc63 21661eee
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1201,6 +1201,7 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void RemoveDevice(const RawAddress& address) override {
    LOG_INFO(": %s ", ADDRESS_TO_LOGGABLE_CSTR(address));
    LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address);
    if (!leAudioDevice) {
      return;
@@ -1253,6 +1254,8 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void Connect(const RawAddress& address) override {
    LOG_INFO(": %s ", ADDRESS_TO_LOGGABLE_CSTR(address));

    LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address);
    if (!leAudioDevice) {
      leAudioDevices_.Add(address, DeviceConnectState::CONNECTING_BY_USER);
@@ -1425,6 +1428,7 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void Disconnect(const RawAddress& address) override {
    LOG_INFO(": %s ", ADDRESS_TO_LOGGABLE_CSTR(address));
    LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address);

    if (!leAudioDevice) {