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

Commit 6aaa3308 authored by Jared Duke's avatar Jared Duke
Browse files

Disable ContentCapture debug logging by default

ContentCapture allows dynamic changing of logging behavior. The
current default sets a relatively high amount of debug logging on
debuggable (userdebug/eng) builds, which should be avoided.

Disable the debug log by default; devs can still enable more verbose
logging as needed on such builds.

Bug: 436095548
Test: presubmit
Flag: EXEMPT trivial logging change
Change-Id: I729835072ce31cc4b2b98d519aa911c2ff8b2046
parent c58ffb98
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import static android.view.contentcapture.ContentCaptureManager.LOGGING_LEVEL_OF
import static android.view.contentcapture.ContentCaptureManager.LOGGING_LEVEL_VERBOSE;

import android.annotation.Nullable;
import android.os.Build;
import android.provider.DeviceConfig;
import android.util.ArraySet;
import android.util.Log;
@@ -41,7 +40,7 @@ public final class ContentCaptureHelper {
    private static final String TAG = ContentCaptureHelper.class.getSimpleName();

    public static boolean sVerbose = false;
    public static boolean sDebug = true;
    public static boolean sDebug = false;

    /**
     * Used to log text that could contain PII.
@@ -56,7 +55,7 @@ public final class ContentCaptureHelper {
     */
    @LoggingLevel
    public static int getDefaultLoggingLevel() {
        return Build.IS_DEBUGGABLE ? LOGGING_LEVEL_DEBUG : LOGGING_LEVEL_OFF;
        return LOGGING_LEVEL_OFF;
    }

    /**