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

Commit e45b09dc authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Always collect stack traces for WTF-level ProtoLog messages" into main

parents 99e38ca8 1e6d70a0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -492,7 +492,8 @@ public abstract class PerfettoProtoLogImpl extends IProtoLogClient.Stub implemen
        if (isProtoEnabled()) {
            long tsNanos = SystemClock.elapsedRealtimeNanos();
            final String stacktrace;
            if (mCollectStackTraceGroupCounts.getOrDefault(group.name(), 0) > 0) {
            if (logLevel == LogLevel.WTF
                    || mCollectStackTraceGroupCounts.getOrDefault(group.name(), 0) > 0) {
                stacktrace = collectStackTrace();
            } else {
                stacktrace = null;