From 30becb7b10cda9b24077ee7caa67a72e215aa7d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Mon, 21 Dec 2020 22:07:51 +0100
Subject: [PATCH] Improve some warnings

---
 src/capture/capture_base.cpp     | 2 +-
 src/frame/frame_base.cpp         | 2 +-
 src/processor/processor_base.cpp | 2 +-
 src/sensor/sensor_base.cpp       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/capture/capture_base.cpp b/src/capture/capture_base.cpp
index 957ed68d0..79286b82f 100644
--- a/src/capture/capture_base.cpp
+++ b/src/capture/capture_base.cpp
@@ -208,7 +208,7 @@ void CaptureBase::link(FrameBasePtr _frm_ptr)
     }
     else
     {
-        WOLF_WARN("Linking with a nullptr");
+        WOLF_WARN("Linking Capture ", id(), " to a nullptr");
     }
 }
 
diff --git a/src/frame/frame_base.cpp b/src/frame/frame_base.cpp
index 6207d6f17..59e6607aa 100644
--- a/src/frame/frame_base.cpp
+++ b/src/frame/frame_base.cpp
@@ -278,7 +278,7 @@ void FrameBase::link(TrajectoryBasePtr _trj_ptr)
     }
     else
     {
-        WOLF_WARN("Linking with a nullptr");
+        WOLF_WARN("Linking Frame ", id(), " to a nullptr");
     }
 }
 
diff --git a/src/processor/processor_base.cpp b/src/processor/processor_base.cpp
index 7e1015a4d..e8f891b8c 100644
--- a/src/processor/processor_base.cpp
+++ b/src/processor/processor_base.cpp
@@ -114,7 +114,7 @@ void ProcessorBase::link(SensorBasePtr _sen_ptr)
     }
     else
     {
-        WOLF_WARN("Linking with a nullptr");
+        WOLF_WARN("Linking Processor ", id(), " to a nullptr");
     }
 }
 
diff --git a/src/sensor/sensor_base.cpp b/src/sensor/sensor_base.cpp
index 0e2a89c12..6ead58cd5 100644
--- a/src/sensor/sensor_base.cpp
+++ b/src/sensor/sensor_base.cpp
@@ -453,7 +453,7 @@ void SensorBase::link(HardwareBasePtr _hw_ptr)
     }
     else
     {
-        WOLF_WARN("Linking with a nullptr");
+        WOLF_WARN("Linking Sensor ", id(), " to a nullptr");
     }
 }
 
-- 
GitLab