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

Commit 071d0427 authored by Palash Ahuja's avatar Palash Ahuja
Browse files

BluetoothMetrics: Logging bytes_field instead of 0 for cross layer

metric

Test: m statsd_testdrive && statsd_testdrive 916
Bug: 345564021
Flag:EXEMPT, metrics changes
Change-Id: I8c1468226918349e77d4b494d03c5f39990412b2
parent 9cccf3f8
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);