From 82a22c9ece8ae90f230c4719bf729bfc29306c7e Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Fri, 9 Aug 2019 12:13:46 +0300
Subject: [PATCH] Move debug output

---
 components/rgbd-sources/include/ftl/rgbd/source.hpp | 2 +-
 components/rgbd-sources/src/stereovideo.cpp         | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/rgbd-sources/include/ftl/rgbd/source.hpp b/components/rgbd-sources/include/ftl/rgbd/source.hpp
index 55cb8554e..694f3f2ea 100644
--- a/components/rgbd-sources/include/ftl/rgbd/source.hpp
+++ b/components/rgbd-sources/include/ftl/rgbd/source.hpp
@@ -76,7 +76,7 @@ class Source : public ftl::Configurable {
 	/**
 	 * Between frames, do any required buffer swaps.
 	 */
-	void swap() { if (impl_) impl_->swap(); }
+	void swap() { if (impl_) impl_->swap(); LOG(INFO) << "SWAP SV " << timestamp_; }
 
 	/**
 	 * Do any post-grab processing. This function
diff --git a/components/rgbd-sources/src/stereovideo.cpp b/components/rgbd-sources/src/stereovideo.cpp
index 2e5ad52ba..d83fdb194 100644
--- a/components/rgbd-sources/src/stereovideo.cpp
+++ b/components/rgbd-sources/src/stereovideo.cpp
@@ -167,7 +167,6 @@ void StereoVideoSource::swap() {
 	tmp = right_;
 	right_ = cap_right_;
 	cap_right_ = tmp;
-	LOG(INFO) << "SWAP SV " << timestamp_;
 }
 
 bool StereoVideoSource::compute(int n, int b) {	
-- 
GitLab