summaryrefslogtreecommitdiff
path: root/adbconnection
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2018-02-12 14:47:16 -0800
committerAlex Light <allight@google.com>2018-02-12 14:47:16 -0800
commitd9258679d4593dc4b7c78bcc214b7a4ac1c7ab82 (patch)
treea8d1bbad26dcf3ea992c89cc5599690de92a5d39 /adbconnection
parentcee0ec1764385f7fe2af45af3c00fd6f9b176cf9 (diff)
Hide an adbconnection log behind VLOG(jdwp).
In moving to the new adbconnection jdwp-provider an error message that was previously behind VLOG(jdwp) was moved to always being sent. This could get rather spammy. The error message was that connecting to adbd failed which can happen normally. Since the error message isn't very helpful lower it to VLOG. Test: build Change-Id: Ief91105ffef6b4991efdb45c732acae7854ef88c
Diffstat (limited to 'adbconnection')
-rw-r--r--adbconnection/adbconnection.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/adbconnection/adbconnection.cc b/adbconnection/adbconnection.cc
index a0c99663b4..07fe9b60dd 100644
--- a/adbconnection/adbconnection.cc
+++ b/adbconnection/adbconnection.cc
@@ -539,7 +539,9 @@ bool AdbConnectionState::SetupAdbConnection() {
return false;
}
} else {
- PLOG(ERROR) << "Can't connect to ADB control socket. Will retry.";
+ if (VLOG_IS_ON(jdwp)) {
+ PLOG(ERROR) << "Can't connect to ADB control socket. Will retry.";
+ }
usleep(sleep_ms * 1000);