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

Commit f56043d2 authored by Christine Hallstrom's avatar Christine Hallstrom Committed by Christine Hallstrom
Browse files

Enable MAP logging based on logcat value for tag

Instead of hardcoding true/false, rely on logcat settings to
enable/disable MAP logging at process start.

Bug: 196731316
Test: Logging only change. Verified logs viewable when log tag enabled.
Ignore-AOSP-First: Needed in tm-qpr release branches.
Change-Id: I2ce8f54b49850b1fa021ddfe06d160f9320a8271
parent 8c312386
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -74,9 +74,9 @@ public class BluetoothMapService extends ProfileService {
     * DEBUG log: "setprop log.tag.BluetoothMapService VERBOSE"
     */

    public static final boolean DEBUG = false;
    public static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);

    public static final boolean VERBOSE = false;
    public static final boolean VERBOSE = Log.isLoggable(TAG, Log.VERBOSE);

    /**
     * The component names for the owned provider and activity
+2 −2
Original line number Diff line number Diff line
@@ -53,8 +53,8 @@ import java.util.concurrent.ConcurrentHashMap;
public class MapClientService extends ProfileService {
    private static final String TAG = "MapClientService";

    static final boolean DBG = false;
    static final boolean VDBG = false;
    static final boolean DBG = Log.isLoggable(TAG, Log.DEBUG);
    static final boolean VDBG = Log.isLoggable(TAG, Log.VERBOSE);

    static final int MAXIMUM_CONNECTED_DEVICES = 4;