From 05043a37b1a35bc7f2a6ca34c58b54148fcc76bf Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 19 Jan 2022 12:27:16 -0500 Subject: [PATCH] include image index in debug --- src/zm_monitorstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_monitorstream.cpp b/src/zm_monitorstream.cpp index f9e91d94b..a6232a23e 100644 --- a/src/zm_monitorstream.cpp +++ b/src/zm_monitorstream.cpp @@ -727,12 +727,12 @@ void MonitorStream::runStream() { (monitor->GetFunction() == Monitor::MOCORD || monitor->GetFunction() == Monitor::MODECT)) { Debug(1, "Sending analysis image"); send_image = monitor->GetAlarmImage(); - if ( !send_image ) { + if (!send_image) { Debug(1, "Falling back"); send_image = monitor->image_buffer[index]; } } else { - Debug(1, "Sending regular image"); + Debug(1, "Sending regular image index %d", index); send_image = monitor->image_buffer[index]; }