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

Commit a2fff89f authored by Jack He's avatar Jack He Committed by Gerrit Code Review
Browse files

Merge "GD-HCI: Change command and event logs from INFO to DEBUG"

parents 32736c07 ed1dcd16
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -357,7 +357,7 @@ static void set_data_cb(
void OnTransmitPacketCommandComplete(command_complete_cb complete_callback,
                                     void* context,
                                     bluetooth::hci::CommandCompleteView view) {
  LOG_INFO("Received cmd complete for %s",
  LOG_DEBUG("Received cmd complete for %s",
            bluetooth::hci::OpCodeText(view.GetCommandOpCode()).c_str());
  std::vector<const uint8_t> data(view.begin(), view.end());
  BT_HDR* response = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, &view);
@@ -385,7 +385,7 @@ class OsiObject {
void OnTransmitPacketStatus(command_status_cb status_callback, void* context,
                            std::unique_ptr<OsiObject> command,
                            bluetooth::hci::CommandStatusView view) {
  LOG_INFO("Received cmd status %s for %s",
  LOG_DEBUG("Received cmd status %s for %s",
            bluetooth::hci::ErrorCodeText(view.GetStatus()).c_str(),
            bluetooth::hci::OpCodeText(view.GetCommandOpCode()).c_str());
  uint8_t status = static_cast<uint8_t>(view.GetStatus());
@@ -416,7 +416,7 @@ static void transmit_command(BT_HDR* command,
  auto packet =
      bluetooth::hci::CommandPacketBuilder::Create(op_code, std::move(payload));

  LOG_INFO("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str());
  LOG_DEBUG("Sending command %s", bluetooth::hci::OpCodeText(op_code).c_str());

  if (IsCommandStatusOpcode(op_code)) {
    auto command_unique = std::make_unique<OsiObject>(command);