Log DexManager realpath errors only in debug mode.

Test: runtest -x .../DexManagerTests.java
Bug: 33807524

Change-Id: I69b7aca347bcd23323a5d72c78edc94a39335d09
This commit is contained in:
Calin Juravle
2016-12-22 14:31:19 +00:00
parent b8976d8f22
commit bb9ed1f3c9

View File

@@ -271,7 +271,11 @@ public class DexManager {
try {
dataDirs.add(PackageManagerServiceUtils.realpath(new File(ai.dataDir)));
} catch (IOException e) {
Slog.w(TAG, "Error to get realpath of " + ai.dataDir, e);
if (DEBUG) {
// Verify why we're getting spam at boot for some devices.
// b/33807524
Slog.w(TAG, "Error to get realpath of " + ai.dataDir, e);
}
}
}