libcamera: camera_manager: Log info message to report camera creation

Camera creation is one of the most important events generated by
libcamera, but we are completely silent about it. The lack of a log
message makes it more difficult to identify problems and provide
support. Fix it by adding an Info message that reports the camera id and
its pipeline handler when the camera is added.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Umang Jain <uajain@igalia.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2025-07-13 15:16:45 +03:00
committed by Kieran Bingham
parent 6928522db6
commit b65df7e755

View File

@@ -217,6 +217,10 @@ void CameraManager::Private::addCamera(std::shared_ptr<Camera> camera)
cameras_.push_back(camera);
}
LOG(Camera, Info)
<< "Adding camera '" << camera->id() << "' for pipeline handler "
<< camera->_d()->pipe()->name();
/* Report the addition to the public signal */
CameraManager *const o = LIBCAMERA_O_PTR();
o->cameraAdded.emit(camera);