Only write stacks traces to tombstoned
When writing to tombstoned fails, do not write stack traces to the
log. The failure is a likely symptom of a more fundamental issue.
(cherry picked from commit 6cca24104ae06c7cd948e466af127bf1bc620f81)
Test: make
Bug: 130025619
Change-Id: I3c7e895dff7d9df5f8d14c1b1235c1c943d32295
Merged-In: I3c7e895dff7d9df5f8d14c1b1235c1c943d32295
diff --git a/runtime/signal_catcher.cc b/runtime/signal_catcher.cc
index 33f582c..20c85c1 100644
--- a/runtime/signal_catcher.cc
+++ b/runtime/signal_catcher.cc
@@ -110,8 +110,7 @@
LOG(INFO) << "Wrote stack traces to tombstoned";
} else {
CHECK(status == PaletteStatus::kCheckErrno);
- LOG(ERROR) << "Failed to write stack traces to tombstoned";
- LOG(INFO) << s;
+ PLOG(ERROR) << "Failed to write stack traces to tombstoned";
}
#else
LOG(INFO) << s;