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

Commit b9a10d45 authored by Josh Gao's avatar Josh Gao Committed by Automerger Merge Worker
Browse files

Merge "adbconnection: silence logspam." am: ff08a51a

Change-Id: I0fa9ab7c50ab1d00ac8078466f4121d414fc2e6b
parents ecc11836 ff08a51a
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;
  }