Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24b90915 authored by Christopher Ferris's avatar Christopher Ferris Committed by Android Git Automerger
Browse files

am 6c4fc3a0: Merge "Change wtf errors from ASSERT to ERROR."

* commit '6c4fc3a0':
  Change wtf errors from ASSERT to ERROR.
parents ac26ea8a 6c4fc3a0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -289,7 +289,10 @@ public final class Log {
    static int wtf(int logId, String tag, String msg, Throwable tr, boolean localStack,
            boolean system) {
        TerribleFailure what = new TerribleFailure(msg, tr);
        int bytes = println_native(logId, ASSERT, tag, msg + '\n'
        // Only mark this as ERROR, do not use ASSERT since that should be
        // reserved for cases where the system is guaranteed to abort.
        // The onTerribleFailure call does not always cause a crash.
        int bytes = println_native(logId, ERROR, tag, msg + '\n'
                + getStackTraceString(localStack ? what : tr));
        sWtfHandler.onTerribleFailure(tag, what, system);
        return bytes;