OSDN Git Service

Move spammy logs to JDWP verbose mode
authorSebastien Hertz <shertz@google.com>
Thu, 18 Sep 2014 08:20:42 +0000 (10:20 +0200)
committerSebastien Hertz <shertz@google.com>
Thu, 18 Sep 2014 09:49:59 +0000 (11:49 +0200)
commitf272af4b9dcd39cdd50fa6655601a26e837eaea9
tree31e57bb86fadf00aeb05de3f4211320d7a281bf4
parentd41491adb23764f28a80cbb7f2bd7af6491cd892
Move spammy logs to JDWP verbose mode

We are spammed by warning messages when debugging, especially each time we
suspend/resume all threads (to update instrumentation or collect monitor info).
It's common to get into the cases where these warnings are logged so they
shouldn't be warning but debug messages.

This CL moves these LOG(WARNING) to VLOG(jdwp) to not disturb developers when
debugging their app (especially when looking for specific messages in logcat).
We keep them in JDWP verbose mode because they help knowing when we initiate
these sequences of "suspend/resume all threads".

Also adds debug suspend count in the log message for more context.

Bug: 17524544
Bug: 17170697
Change-Id: Ic87985ac6913151d15fd89849e41bde61092c3dd
runtime/jdwp/jdwp_event.cc
runtime/thread_list.cc