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

Commit 4f97c945 authored by Anil Admal's avatar Anil Admal
Browse files

Demote message send/receive wakelock log messages to DEBUG.

To reduce logcat spam, in GnssLocationProvider class, demote
wakelock acquire/release log messages associated with message
sending/handling.

Bug: 77148339
Bug: 118837738
Test: Performed a GNSS fix and checked the logcat messages for
      wakelock messages.

Change-Id: I749609470e457ba23b7144f73b8f20c606573cbe
parent d27f6b3f
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -2075,8 +2075,8 @@ public class GnssLocationProvider implements LocationProviderInterface, InjectNt
        // note that this assumes the message will not be removed from the queue before
        // note that this assumes the message will not be removed from the queue before
        // it is handled (otherwise the wake lock would be leaked).
        // it is handled (otherwise the wake lock would be leaked).
        mWakeLock.acquire();
        mWakeLock.acquire();
        if (Log.isLoggable(TAG, Log.INFO)) {
        if (DEBUG) {
            Log.i(TAG, "WakeLock acquired by sendMessage(" + messageIdAsString(message) + ", " + arg
            Log.d(TAG, "WakeLock acquired by sendMessage(" + messageIdAsString(message) + ", " + arg
                    + ", " + obj + ")");
                    + ", " + obj + ")");
        }
        }
        mHandler.obtainMessage(message, arg, 1, obj).sendToTarget();
        mHandler.obtainMessage(message, arg, 1, obj).sendToTarget();
@@ -2133,8 +2133,8 @@ public class GnssLocationProvider implements LocationProviderInterface, InjectNt
            if (msg.arg2 == 1) {
            if (msg.arg2 == 1) {
                // wakelock was taken for this message, release it
                // wakelock was taken for this message, release it
                mWakeLock.release();
                mWakeLock.release();
                if (Log.isLoggable(TAG, Log.INFO)) {
                if (DEBUG) {
                    Log.i(TAG, "WakeLock released by handleMessage(" + messageIdAsString(message)
                    Log.d(TAG, "WakeLock released by handleMessage(" + messageIdAsString(message)
                            + ", " + msg.arg1 + ", " + msg.obj + ")");
                            + ", " + msg.arg1 + ", " + msg.obj + ")");
                }
                }
            }
            }