summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Calvin Pan <calvinpan@google.com> 2022-05-18 09:22:04 +0000
committer Calvin Pan <calvinpan@google.com> 2022-05-18 11:21:12 +0000
commitcb612e4f8b84e1ca3d02b14dea5c465ca3d5dbb6 (patch)
treebb570041702212bd1280e85595c3786d8de75c55
parent3f58f8161f82ff0521082a4219baacb73c2d8adf (diff)
Avoid printing call stack for the app that doesn't add the LocaleConfig
Most apps have not added the LocaleConfig yet and it will print each application's stack when settings query package status. To keep the logs clearer and reduce calls to getStackTrackString() to improve a little performance. Bug: 232557302 Test: Saving about 80% under java stack tracing mode Change-Id: Ic28641c35bad24928418820159a92efc1e146538
-rw-r--r--core/java/android/app/LocaleConfig.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/LocaleConfig.java b/core/java/android/app/LocaleConfig.java
index 7c83d5850f76..bbe3ce3c1cdb 100644
--- a/core/java/android/app/LocaleConfig.java
+++ b/core/java/android/app/LocaleConfig.java
@@ -99,7 +99,7 @@ public class LocaleConfig {
XmlResourceParser parser = res.getXml(resId);
parseLocaleConfig(parser, res);
} catch (Resources.NotFoundException e) {
- Slog.w(TAG, "The resource file pointed to by the given resource ID isn't found.", e);
+ Slog.w(TAG, "The resource file pointed to by the given resource ID isn't found.");
mStatus = STATUS_NOT_SPECIFIED;
} catch (XmlPullParserException | IOException e) {
Slog.w(TAG, "Failed to parse XML configuration from "