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

Commit 2c4e3187 authored by vadimt's avatar vadimt
Browse files

TAPL: Tracing only changed part of the context for diags

Printing the whole context stack has proven to be harder to decipher.

Change-Id: Ic11981884491fc96b939f4736ec974a1640c0304
parent 0fd48b51
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -260,9 +260,9 @@ public final class LauncherInstrumentation {

    Closable addContextLayer(String piece) {
        mDiagnosticContext.addLast(piece);
        log("Added context: " + getContextDescription());
        log("Entering context: " + piece);
        return () -> {
            log("Removing context: " + getContextDescription());
            log("Leaving context: " + piece);
            mDiagnosticContext.removeLast();
        };
    }