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

Commit 9e62b1c9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Disable verbose / debug log by default" into main

parents fc0bd986 5f4124c6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.util;
import android.util.Log.Level;

import com.android.internal.os.RuntimeInit;
import com.android.ravenwood.common.RavenwoodCommonUtils;

import java.io.PrintStream;

@@ -35,6 +36,9 @@ public class Log_host {
    }

    public static int println_native(int bufID, int priority, String tag, String msg) {
        if (priority < Log.INFO && !RavenwoodCommonUtils.RAVENWOOD_VERBOSE_LOGGING) {
            return msg.length(); // No verbose logging.
        }
        final String buffer;
        switch (bufID) {
            case Log.LOG_ID_MAIN: buffer = "main"; break;