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

Commit 26d8fa9d authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

Put Log.wtf's terrible failure in logcat -b main.

As discovered by jpa@, previously it was only in logcat -b events, not
-b main, which people don't typically watch.

Bug: 2964398
Change-Id: Id672dd936f1678dd347158428b0ca03e4ad1e2d4
parent 42c2d502
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ public final class Log {
     */
    public static int wtf(String tag, String msg, Throwable tr) {
        TerribleFailure what = new TerribleFailure(msg, tr);
        int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, getStackTraceString(tr));
        int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, msg + '\n' + getStackTraceString(tr));
        sWtfHandler.onTerribleFailure(tag, what);
        return bytes;
    }