From cb8a4b718387ecf2e010b596354b5becc9bf7188 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Fri, 17 Jul 2020 13:50:35 +0300
Subject: [PATCH] Trivial log output change

---
 components/rgbd-sources/src/sources/stereovideo/pylon.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/rgbd-sources/src/sources/stereovideo/pylon.cpp b/components/rgbd-sources/src/sources/stereovideo/pylon.cpp
index 515aadda3..064cab2ac 100644
--- a/components/rgbd-sources/src/sources/stereovideo/pylon.cpp
+++ b/components/rgbd-sources/src/sources/stereovideo/pylon.cpp
@@ -218,7 +218,7 @@ bool PylonDevice::get(cv::cuda::GpuMat &l_out, cv::cuda::GpuMat &r_out, cv::cuda
 			Pylon::CGrabResultPtr tmp_result;
 			lcam_->RetrieveResult(0, tmp_result, Pylon::TimeoutHandling_Return);
 			rcam_->RetrieveResult(0, tmp_result, Pylon::TimeoutHandling_Return);
-		} else if (rcount > 1 || lcount > 1) LOG(ERROR) << "Buffers out of sync";
+		} else if (rcount > 1 || lcount > 1) LOG(ERROR) << "Buffers out of sync by " << std::max(rcount, lcount);
 	} else {
 		if (lcam_->NumReadyBuffers.GetValue() == 0) {
 			LOG(INFO) << "Retrieve failed for L";
-- 
GitLab