Add debug logging when keys are blocked

Adding a log statement at debug level so when the key blocking system
is tested end-to-end there's an easy indicator of a key being blocked.

Bug: 149548272
Test: No code which affects functionality to test
Change-Id: I9de8a7d47ffb75520d1adcba620ec13345c1c4ae
This commit is contained in:
Al Sutton
2020-02-18 15:22:06 +00:00
parent 231f41bfcb
commit d5db369554

View File

@@ -76,9 +76,7 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
@@ -802,6 +800,7 @@ public class PerformUnifiedRestoreTask implements BackupRestoreTask {
final int size = in.getDataSize();
if (excludedKeysForPackage != null && excludedKeysForPackage.contains(key)) {
Slog.i(TAG, "Skipping blocked key " + key);
in.skipEntityData();
continue;
}