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

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

Merge "BluetoothMetrics: Logging bytes_field instead of 0 for cross layer metric" into main

parents 22f5e11b 071d0427
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -465,7 +465,12 @@ void LogMetricBluetoothEvent(const Address& address, android::bluetooth::EventTy
    return;
  }
  int metric_id = MetricIdManager::GetInstance().AllocateId(address);
  int ret = stats_write(BLUETOOTH_CROSS_LAYER_EVENT_REPORTED, event_type, state, 0, metric_id, 0);
  int ret = stats_write(BLUETOOTH_CROSS_LAYER_EVENT_REPORTED,
                        event_type,
                        state,
                        0,
                        metric_id,
                        BytesField(nullptr, 0));
  if (ret < 0) {
    log::warn("Failed BluetoothEvent Upload - Address {}, Event_type {}, State {}", address,
              event_type, state);