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

Commit ff08a51a authored by Josh Gao's avatar Josh Gao Committed by Gerrit Code Review
Browse files

Merge "adbconnection: silence logspam."

parents 22cc277b d81a805a
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -140,7 +140,13 @@ AdbConnectionClientContext* adbconnection_client_new(

  int rc = connect(ctx->control_socket_.get(), reinterpret_cast<sockaddr*>(&addr), addr_len);
  if (rc != 0) {
    if (errno == ECONNREFUSED) {
      // On userdebug devices, every Java process is debuggable, so if adbd is explicitly turned
      // off, this would spew enormous amounts of red-herring errors.
      LOG(DEBUG) << "failed to connect to jdwp control socket, adbd not running?";
    } else {
      PLOG(ERROR) << "failed to connect to jdwp control socket";
    }
    return nullptr;
  }