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

Commit d1d73e05 authored by Becky Qiu's avatar Becky Qiu Committed by Android (Google) Code Review
Browse files

Merge "Print out debug logging in bug report if not running test." into udc-qpr-dev

parents 902c080b 28498d5f
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) {