summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/camera_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/camera_manager.cpp b/src/libcamera/camera_manager.cpp
index 76543b6a..47d56256 100644
--- a/src/libcamera/camera_manager.cpp
+++ b/src/libcamera/camera_manager.cpp
@@ -182,10 +182,10 @@ void CameraManager::Private::addCamera(std::shared_ptr<Camera> camera,
for (std::shared_ptr<Camera> c : cameras_) {
if (c->id() == camera->id()) {
- LOG(Camera, Warning)
- << "Registering camera with duplicate ID '"
+ LOG(Camera, Fatal)
+ << "Trying to register a camera with a duplicated ID '"
<< camera->id() << "'";
- break;
+ return;
}
}