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

Commit 12932d25 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Improve logging] Add clear messaging for ignored logs" into main

parents 5d49dbf8 d032a9c8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -842,9 +842,13 @@ public final class PresentationStatsEventLogger {
                    + "event");
            return;
        }

        PresentationStatsEventInternal event = mEventInternal.get();
        boolean ignoreLogging = !event.mIsDatasetAvailable;

        if (sVerbose) {
            Slog.v(TAG, "(" + caller + ") "
                    + (ignoreLogging ? "IGNORING - following event won't be logged: " : "")
                    + "Log AutofillPresentationEventReported:"
                    + " requestId=" + event.mRequestId
                    + " sessionId=" + mSessionId
@@ -907,7 +911,8 @@ public final class PresentationStatsEventLogger {
        }

        // TODO(b/234185326): Distinguish empty responses from other no presentation reasons.
        if (!event.mIsDatasetAvailable) {
        if (ignoreLogging) {
            Slog.w(TAG, "Empty dataset. Autofill ignoring log");
            mEventInternal = Optional.empty();
            return;
        }