Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28498d5f authored by Becky Qiu's avatar Becky Qiu
Browse files

Print out debug logging in bug report if not running test.

Bug: 300101221
Test: local
Flag: not needed, logging only.
Change-Id: If016d6fe35a1c43e1a1f311d696b9f2ca0f36f6a
parent 997bc3e3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ public class StatsLogCompatManager extends StatsLogManager {
    private static final String LATENCY_TAG = "StatsLatencyLog";
    private static final String IMPRESSION_TAG = "StatsImpressionLog";
    private static final boolean IS_VERBOSE = Utilities.isPropertyEnabled(LogConfig.STATSLOG);
    private static final boolean DEBUG = !Utilities.isRunningInTestHarness();
    private static final InstanceId DEFAULT_INSTANCE_ID = InstanceId.fakeInstanceId(0);
    // LauncherAtom.ItemInfo.getDefaultInstance() should be used but until launcher proto migrates
    // from nano to lite, bake constant to prevent robo test failure.
@@ -326,6 +327,11 @@ public class StatsLogCompatManager extends StatsLogManager {
            if (!Utilities.ATLEAST_R) {
                return;
            }
            if (DEBUG) {
                String name = (event instanceof Enum) ? ((Enum) event).name() :
                        event.getId() + "";
                Log.d(TAG, name);
            }
            LauncherAppState appState = LauncherAppState.getInstanceNoCreate();

            if (mSlice == null && mSliceItem != null) {