Lower several adbconnection log messages to VLOG(jdwp)
We lower some adbconnection log messages to prevent log-spam on
userdebug and eng devices. These messages are not terribly important
and are sent for every java process on userdebug devices.
Test: Build
Change-Id: I66b50aa9014211b435dd43171c0a3316eef50755
diff --git a/adbconnection/adbconnection.cc b/adbconnection/adbconnection.cc
index d8db923..bdcdcbe 100644
--- a/adbconnection/adbconnection.cc
+++ b/adbconnection/adbconnection.cc
@@ -312,12 +312,12 @@
// Get the write_event early to fail fast.
ScopedEventFdLock lk(adb_write_event_fd_);
if (adb_connection_socket_ == -1) {
- LOG(WARNING) << "Not sending ddms data of type "
- << StringPrintf("%c%c%c%c",
- static_cast<char>(type >> 24),
- static_cast<char>(type >> 16),
- static_cast<char>(type >> 8),
- static_cast<char>(type)) << " due to no connection!";
+ VLOG(jdwp) << "Not sending ddms data of type "
+ << StringPrintf("%c%c%c%c",
+ static_cast<char>(type >> 24),
+ static_cast<char>(type >> 16),
+ static_cast<char>(type >> 8),
+ static_cast<char>(type)) << " due to no connection!";
// Adb is not connected.
return;
}
@@ -523,7 +523,7 @@
/* now try to send our pid to the ADB daemon */
ret = TEMP_FAILURE_RETRY(send(sock, buff, sizeof(pid_t), 0));
if (ret == sizeof(pid_t)) {
- LOG(INFO) << "PID " << getpid() << " send to adb";
+ VLOG(jdwp) << "PID " << getpid() << " send to adb";
control_sock_ = std::move(sock);
return true;
} else {