Merge "[SettingsProvider] reduce log spam" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5bd81e3c6a
@@ -31,7 +31,7 @@ import java.io.IOException;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This class tracks changes for config/global/secure/system tables
|
* This class tracks changes for config/global/secure/system tables
|
||||||
* on a per user basis and updates shared memory regions which
|
* on a per-user basis and updates shared memory regions which
|
||||||
* client processes can read to determine if their local caches are
|
* client processes can read to determine if their local caches are
|
||||||
* stale.
|
* stale.
|
||||||
*/
|
*/
|
||||||
@@ -196,7 +196,9 @@ final class GenerationRegistry {
|
|||||||
if (backingStore == null) {
|
if (backingStore == null) {
|
||||||
try {
|
try {
|
||||||
if (mNumBackingStore >= NUM_MAX_BACKING_STORE) {
|
if (mNumBackingStore >= NUM_MAX_BACKING_STORE) {
|
||||||
Slog.e(LOG_TAG, "Error creating backing store - at capacity");
|
if (DEBUG) {
|
||||||
|
Slog.e(LOG_TAG, "Error creating backing store - at capacity");
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
backingStore = new MemoryIntArray(MAX_BACKING_STORE_SIZE);
|
backingStore = new MemoryIntArray(MAX_BACKING_STORE_SIZE);
|
||||||
@@ -256,7 +258,9 @@ final class GenerationRegistry {
|
|||||||
+ " on user:" + SettingsState.getUserIdFromKey(key));
|
+ " on user:" + SettingsState.getUserIdFromKey(key));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Slog.e(LOG_TAG, "Could not allocate generation index");
|
if (DEBUG) {
|
||||||
|
Slog.e(LOG_TAG, "Could not allocate generation index");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return index;
|
return index;
|
||||||
|
|||||||
Reference in New Issue
Block a user