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

Commit f7698fa3 authored by Yuyang Huang's avatar Yuyang Huang
Browse files

change log level to loggable

Change-Id: I187a26b2f6ab2424dcfac9fe1a8a877bb4630168
Test: atest BatteryServiceTest
Bug: 293195045
parent b8bbc7e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,8 +53,8 @@ import java.util.Objects;
 * A profile service that connects to the Battery service (BAS) of BLE devices
 */
public class BatteryService extends ProfileService {
    private static final boolean DBG = false;
    private static final String TAG = "BatteryService";
    private static final boolean DBG = Log.isLoggable(TAG, Log.DEBUG);

    // Timeout for state machine thread join, to prevent potential ANR.
    private static final int SM_THREAD_JOIN_TIMEOUT_MS = 1_000;