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

Commit 78463721 authored by Tom Chan's avatar Tom Chan
Browse files

Reduce log level in the send/receive message path

We expect to send messages at a high frequency. Reducing the log level
avoids cluttering the logcat output.

Test: Will rely on presubmit
Bug: 301427767
Change-Id: I1de99f4bc13dbf55244583c9901d27344c51b545
parent e3fc2640
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public class CompanionTransportManager {
     * Send a message to remote devices through the transports
     */
    public void sendMessage(int message, byte[] data, int[] associationIds) {
        Slog.i(TAG, "Sending message 0x" + Integer.toHexString(message)
        Slog.d(TAG, "Sending message 0x" + Integer.toHexString(message)
                + " data length " + data.length);
        synchronized (mTransports) {
            for (int i = 0; i < associationIds.length; i++) {
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ public abstract class Transport {
        if (mListeners.containsKey(message)) {
            try {
                mListeners.get(message).onMessageReceived(getAssociationId(), data);
                Slog.i(TAG, "Message 0x" + Integer.toHexString(message)
                Slog.d(TAG, "Message 0x" + Integer.toHexString(message)
                        + " is received from associationId " + mAssociationId
                        + ", sending data length " + data.length + " to the listener.");
            } catch (RemoteException ignored) {