diff options
author | yawanng <yawanng@google.com> | 2020-06-25 23:48:35 +0000 |
---|---|---|
committer | Yan Wang <yawanng@google.com> | 2020-06-26 16:37:57 +0000 |
commit | dce293b64a8d35116cbcf549d257c5ba2800b40c (patch) | |
tree | 5ce7c21474ccf5efec2b82b275fe41fddf6c47e0 | |
parent | a57d8ae57f9361c969fcc6308a1549e3a6455533 (diff) |
DO NOT MERGE: EventSequenceValidator: downgrade the log level.
This class is for sanity check only, downgrade the log level.
Bug: 159947779
Test: Make and check the logcat.
Change-Id: I0c9c125c0208849252db4992dfd4860750a104f8
-rw-r--r-- | startop/iorap/src/com/google/android/startop/iorap/EventSequenceValidator.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/startop/iorap/src/com/google/android/startop/iorap/EventSequenceValidator.java b/startop/iorap/src/com/google/android/startop/iorap/EventSequenceValidator.java index 6b194550cc11..67e1b440e28a 100644 --- a/startop/iorap/src/com/google/android/startop/iorap/EventSequenceValidator.java +++ b/startop/iorap/src/com/google/android/startop/iorap/EventSequenceValidator.java @@ -120,7 +120,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { return; } - Log.i(TAG, String.format("Transition from %s to %s", state, State.INTENT_STARTED)); + Log.d(TAG, String.format("Transition from %s to %s", state, State.INTENT_STARTED)); state = State.INTENT_STARTED; } @@ -138,7 +138,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { return; } - Log.i(TAG, String.format("Transition from %s to %s", state, State.INTENT_FAILED)); + Log.d(TAG, String.format("Transition from %s to %s", state, State.INTENT_FAILED)); state = State.INTENT_FAILED; } @@ -156,7 +156,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { return; } - Log.i(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_LAUNCHED)); + Log.d(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_LAUNCHED)); state = State.ACTIVITY_LAUNCHED; } @@ -174,7 +174,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { return; } - Log.i(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_CANCELLED)); + Log.d(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_CANCELLED)); state = State.ACTIVITY_CANCELLED; } @@ -194,7 +194,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { return; } - Log.i(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_FINISHED)); + Log.d(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_FINISHED)); state = State.ACTIVITY_FINISHED; } @@ -215,7 +215,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { return; } - Log.i(TAG, String.format("Transition from %s to %s", state, State.REPORT_FULLY_DRAWN)); + Log.d(TAG, String.format("Transition from %s to %s", state, State.REPORT_FULLY_DRAWN)); state = State.REPORT_FULLY_DRAWN; } @@ -238,7 +238,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { state = State.UNKNOWN; } ++accIntentStartedEvents; - Log.i(TAG, + Log.d(TAG, String.format("inc AccIntentStartedEvents to %d", accIntentStartedEvents)); } @@ -250,7 +250,7 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { state = State.INIT; } --accIntentStartedEvents; - Log.i(TAG, + Log.d(TAG, String.format("dec AccIntentStartedEvents to %d", accIntentStartedEvents)); } @@ -258,6 +258,6 @@ public class EventSequenceValidator implements ActivityMetricsLaunchObserver { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); new Throwable("EventSequenceValidator#getStackTrace").printStackTrace(pw); - Log.w(TAG, String.format("%s\n%s", log, sw)); + Log.d(TAG, String.format("%s\n%s", log, sw)); } } |