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
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user