Change flushing log to verbose
Lots of logspam while scrolling that impact system performance. So make it default disabled. To turn on verbose log, use command: > adb shell device_config put content_capture logging_level 2 Bug: 227352259 Test: atest CtsContentCaptureServiceTestCases Change-Id: I0044a82be51d1a26ffbb3cf4058f8e7f13e7ebae
This commit is contained in:
@@ -562,11 +562,11 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
|
||||
final int numberEvents = mEvents.size();
|
||||
final String reasonString = getFlushReasonAsString(reason);
|
||||
|
||||
if (sDebug) {
|
||||
if (sVerbose) {
|
||||
ContentCaptureEvent event = mEvents.get(numberEvents - 1);
|
||||
String forceString = (reason == FLUSH_REASON_FORCE_FLUSH) ? ". The force flush event "
|
||||
+ ContentCaptureEvent.getTypeAsString(event.getType()) : "";
|
||||
Log.d(TAG, "Flushing " + numberEvents + " event(s) for " + getDebugState(reason)
|
||||
Log.v(TAG, "Flushing " + numberEvents + " event(s) for " + getDebugState(reason)
|
||||
+ forceString);
|
||||
}
|
||||
if (mFlushHistory != null) {
|
||||
|
||||
Reference in New Issue
Block a user