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

Commit 6eac90fe authored by Charles Yo's avatar Charles Yo
Browse files

Revert "Initialize ProtoLog instances statically"

Revert submission 28147757-no-processing-protolog

Reason for revert: b/351458758

Reverted changes: /q/submissionid:28147757-no-processing-protolog

Change-Id: I07d309e371e6cd46ad237e96caa7f112b044dc96
parent 812d479d
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -169,16 +169,4 @@ public class ProtoLog {
            sProtoLogInstance.log(logLevel, group, stringMessage, args);
        }
    }

    static {
        if (android.tracing.Flags.perfettoProtologTracing()) {
            sProtoLogInstance = new PerfettoProtoLogImpl();
        } else {
            if (REQUIRE_PROTOLOGTOOL) {
                throw new RuntimeException("REQUIRE_PROTOLOGTOOL not set to false.");
            } else {
                sProtoLogInstance = new LogcatOnlyProtoLogImpl();
            }
        }
    }
}