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

Commit f5387674 authored by Hai Zhang's avatar Hai Zhang
Browse files

Fix historical ops logging.

Bug: 138866253
Test: presubmit
Change-Id: I2e1f460ec0d44064e7e21543f1c12b90678c6333
parent 28147937
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ final class HistoricalRegistry {
                makeRelativeToEpochStart(currentOps, nowMillis);
                currentOps.accept(visitor);

                if(isPersistenceInitializedMLocked()) {
                if (!isPersistenceInitializedMLocked()) {
                    Slog.e(LOG_TAG, "Interaction before persistence initialized");
                    return;
                }
@@ -457,7 +457,7 @@ final class HistoricalRegistry {
                // it is a part of the persistence initialization process.
                boolean resampleHistory = false;
                Slog.i(LOG_TAG, "New history parameters: mode:"
                        + AppOpsManager.historicalModeToString(mMode) + " baseSnapshotInterval:"
                        + AppOpsManager.historicalModeToString(mode) + " baseSnapshotInterval:"
                        + baseSnapshotInterval + " intervalCompressionMultiplier:"
                        + intervalCompressionMultiplier);
                if (mMode != mode) {
@@ -1066,7 +1066,7 @@ final class HistoricalRegistry {
                normalizeSnapshotForSlotDuration(persistedOps, slotDurationMillis);
                writeHistoricalOpsDLocked(persistedOps, intervalOverflowMillis, newFile);
                if (DEBUG) {
                    Slog.i(LOG_TAG, "Persisted at depth: " + depth
                    Slog.i(LOG_TAG, "Persisted at depth: " + depth + " file: " + newFile
                            + " ops:\n" + opsToDebugString(persistedOps));
                    enforceOpsWellFormed(persistedOps);
                }