Merge "Add an error message for debugging"

This commit is contained in:
Chun-Wei Wang
2022-11-03 04:37:56 +00:00
committed by Android (Google) Code Review

View File

@@ -231,7 +231,12 @@ public class RescueParty {
String namespaceToReset = namespaceIt.next();
Properties properties = new Properties.Builder(namespaceToReset).build();
try {
DeviceConfig.setProperties(properties);
if (!DeviceConfig.setProperties(properties)) {
logCriticalInfo(Log.ERROR, "Failed to clear properties under "
+ namespaceToReset
+ ". Running `device_config get_sync_disabled_for_tests` will confirm"
+ " if config-bulk-update is enabled.");
}
} catch (DeviceConfig.BadConfigException exception) {
logCriticalInfo(Log.WARN, "namespace " + namespaceToReset
+ " is already banned, skip reset.");