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

Commit c8cc1219 authored by Charles Yo's avatar Charles Yo Committed by Android Build Coastguard Worker
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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6eac90fea4ac35363f3ed857b294de7f74534400)
Merged-In: I07d309e371e6cd46ad237e96caa7f112b044dc96
Change-Id: I07d309e371e6cd46ad237e96caa7f112b044dc96
parent da6c5a45
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();
            }
        }
    }
}