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

Commit 20c384d1 authored by JW Wang's avatar JW Wang Committed by Chun-Wei Wang
Browse files

Add an error message for debugging

Bug: 256205354
Test: atest CtsRollbackManagerTestCases
Change-Id: I4512ce63a586e94303679af0f565e9ccdff89177
parent c9f364c0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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.");