Log the exception when parsing settings fails

Test: compile
Change-Id: Ifb96bff3e0bf35bcff2635c8d03a09ae5200ffa1
This commit is contained in:
Theodore Dubois
2022-10-24 14:35:43 -07:00
parent 3e7dbafe63
commit 77cf1fac87

View File

@@ -1087,6 +1087,7 @@ final class SettingsState {
parseStateLocked(parser);
return true;
} catch (XmlPullParserException | IOException e) {
Slog.e(LOG_TAG, "parse settings xml failed", e);
return false;
} finally {
IoUtils.closeQuietly(in);