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>
Fri, 19 Sep 2014 06:52:12 +0000 (08:52 +0200)
commitdcfd6cad9670ca3ae460a4af0bbe7d88cae21a3c
treeb428c8b0bfd6d1852d1974641f2ce633fc153ffb
parent33c36d4f22ab6a5e61eb47b654deaf647c34e49c
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

(cherry picked from commit f272af4b9dcd39cdd50fa6655601a26e837eaea9)

Change-Id: I61df70ace1475bf10d83202b6bb774f7036354cb
runtime/jdwp/jdwp_event.cc
runtime/thread_list.cc