Merge "Print exception via Slog, not .printStackTrace()." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-10 18:58:48 +00:00
committed by Android (Google) Code Review

View File

@@ -525,8 +525,7 @@ public final class SystemServer implements Dumpable {
String filename = "/data/system/heapdump/fdtrack-" + date + ".hprof";
Debug.dumpHprofData(filename);
} catch (IOException ex) {
Slog.e("System", "Failed to dump fdtrack hprof");
ex.printStackTrace();
Slog.e("System", "Failed to dump fdtrack hprof", ex);
}
}