Merge "Change logs level for "Interaction before persistence initialized" message." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9643ac4ef
@@ -491,7 +491,7 @@ final class HistoricalRegistry {
|
|||||||
synchronized (mInMemoryLock) {
|
synchronized (mInMemoryLock) {
|
||||||
if (mMode == AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
if (mMode == AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.v(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getUpdatedPendingHistoricalOpsMLocked(
|
getUpdatedPendingHistoricalOpsMLocked(
|
||||||
@@ -509,7 +509,7 @@ final class HistoricalRegistry {
|
|||||||
synchronized (mInMemoryLock) {
|
synchronized (mInMemoryLock) {
|
||||||
if (mMode == AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
if (mMode == AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.v(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getUpdatedPendingHistoricalOpsMLocked(
|
getUpdatedPendingHistoricalOpsMLocked(
|
||||||
@@ -525,7 +525,7 @@ final class HistoricalRegistry {
|
|||||||
synchronized (mInMemoryLock) {
|
synchronized (mInMemoryLock) {
|
||||||
if (mMode == AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
if (mMode == AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.v(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getUpdatedPendingHistoricalOpsMLocked(
|
getUpdatedPendingHistoricalOpsMLocked(
|
||||||
@@ -604,7 +604,7 @@ final class HistoricalRegistry {
|
|||||||
final List<HistoricalOps> pendingWrites;
|
final List<HistoricalOps> pendingWrites;
|
||||||
synchronized (mInMemoryLock) {
|
synchronized (mInMemoryLock) {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.d(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// The history files start from mBaseSnapshotInterval - take this into account.
|
// The history files start from mBaseSnapshotInterval - take this into account.
|
||||||
@@ -623,7 +623,7 @@ final class HistoricalRegistry {
|
|||||||
|
|
||||||
void resetHistoryParameters() {
|
void resetHistoryParameters() {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.d(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setHistoryParameters(DEFAULT_MODE, DEFAULT_SNAPSHOT_INTERVAL_MILLIS,
|
setHistoryParameters(DEFAULT_MODE, DEFAULT_SNAPSHOT_INTERVAL_MILLIS,
|
||||||
@@ -635,7 +635,7 @@ final class HistoricalRegistry {
|
|||||||
synchronized (mOnDiskLock) {
|
synchronized (mOnDiskLock) {
|
||||||
synchronized (mInMemoryLock) {
|
synchronized (mInMemoryLock) {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.d(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mMode != AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
if (mMode != AppOpsManager.HISTORICAL_MODE_ENABLED_ACTIVE) {
|
||||||
@@ -668,7 +668,7 @@ final class HistoricalRegistry {
|
|||||||
synchronized (mOnDiskLock) {
|
synchronized (mOnDiskLock) {
|
||||||
synchronized (mInMemoryLock) {
|
synchronized (mInMemoryLock) {
|
||||||
if (!isPersistenceInitializedMLocked()) {
|
if (!isPersistenceInitializedMLocked()) {
|
||||||
Slog.e(LOG_TAG, "Interaction before persistence initialized");
|
Slog.d(LOG_TAG, "Interaction before persistence initialized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearHistoryOnDiskDLocked();
|
clearHistoryOnDiskDLocked();
|
||||||
|
|||||||
Reference in New Issue
Block a user