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

Commit f3be1da5 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

camera: Reduce logspam from VirtualDeviceCameraIdMapper



Any operation involving a binder call with camera clients would go
through the virtual device camera id mapper, so the fetch results
shouldn't log unless enabled.

Test: build

Change-Id: Ia77ecb07f885309b8a80c1100e2dd2cf80e267f9
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 5827691a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
 * limitations under the License.
 */

//#define LOG_NDEBUG 0
#define LOG_TAG "VirtualDeviceCameraIdMapper"

#include <android_companion_virtualdevice_flags.h>
@@ -99,8 +100,8 @@ std::pair<int32_t, std::string> VirtualDeviceCameraIdMapper::getDeviceIdAndMappe
            return deviceIdMappedCameraIdPair;
        }
    }
    ALOGD("%s: No device id and mapped camera id found for camera id %s, so it must belong "
          "to the default device", __func__, cameraId.c_str());
    ALOGV("%s: No device id and mapped camera id found for camera id %s, so it must belong "
            "to the default device ? ", __func__, cameraId.c_str());
    return std::make_pair(kDefaultDeviceId, cameraId);
}