From c4bfa85ca40ba9faada32503e16d7a12f51d0dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Sat, 6 Aug 2022 21:52:25 +0200 Subject: [PATCH] Improve info messages in PM --- src/processor/processor_motion.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/processor/processor_motion.cpp b/src/processor/processor_motion.cpp index 5f4d77d4c..f8f2ce217 100644 --- a/src/processor/processor_motion.cpp +++ b/src/processor/processor_motion.cpp @@ -995,23 +995,23 @@ FrameBasePtr ProcessorMotion::computeProcessingStep() if (checkTimeTolerance(keyframe_from_callback, incoming_ptr_)) { - WOLF_DEBUG("First time with a KF compatible.") + WOLF_DEBUG("PM ", getName(), ": First time with a KF compatible.") processing_step_ = FIRST_TIME_WITH_KF_ON_INCOMING; } else if (keyframe_from_callback->getTimeStamp() < incoming_ptr_->getTimeStamp()) { - WOLF_DEBUG("First time with a KF too old. It seems the prior has been set before receiving the first capture of this processor.") + WOLF_DEBUG("PM ", getName(), ": First time with a KF too old. It seems the prior has been set before receiving the first capture of this processor.") processing_step_ = FIRST_TIME_WITH_KF_BEFORE_INCOMING; } else { - WOLF_DEBUG("First time with a KF newer than the first capture. It only can happen if prior mode is 'nothing'") + WOLF_DEBUG("PM ", getName(), ": First time with a KF newer than the first capture. It only can happen if prior mode is 'nothing'") processing_step_ = FIRST_TIME_WITH_KF_AFTER_INCOMING; } } else { - WOLF_DEBUG("First time with a KF newer than the first capture. It only can happen if prior mode is 'nothing'") + WOLF_DEBUG("PM ", getName(), ": First time with a KF newer than the first capture. It only can happen if prior mode is 'nothing'") processing_step_ = FIRST_TIME_WITHOUT_KF; } @@ -1057,7 +1057,7 @@ TimeStamp ProcessorMotion::getTimeStamp ( ) const origin_ptr_->isRemoving() or not last_ptr_) { - WOLF_DEBUG("Processor has no time stamp. Returning a non-valid timestamp equal to 0"); + WOLF_DEBUG("PM proc \"", getName(), "\" has no time stamp. Returning a non-valid timestamp equal to 0"); return TimeStamp::Invalid(); } -- GitLab