From d6345d32fdec3f5e8ccb36a79bebc1cc50d37089 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 25 Nov 2020 09:53:06 -0500 Subject: [PATCH] Reduce error level of warnings about monitors having Function==NONE --- src/zm_stream.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zm_stream.cpp b/src/zm_stream.cpp index 613e6c97e..98c08922d 100644 --- a/src/zm_stream.cpp +++ b/src/zm_stream.cpp @@ -52,8 +52,9 @@ bool StreamBase::loadMonitor(int p_monitor_id) { Error("Unable to load monitor id %d for streaming", monitor_id); return false; } + if ( monitor->GetFunction() == Monitor::NONE ) { - Error("Monitor %d has function NONE. Will not be able to connect to it.", monitor_id); + Info("Monitor %d has function NONE. Will not be able to connect to it.", monitor_id); return false; } @@ -71,7 +72,7 @@ bool StreamBase::checkInitialised() { return false; } if ( monitor->GetFunction() == Monitor::NONE ) { - Error("Monitor %d has function NONE. Will not be able to connect to it.", monitor_id); + Info("Monitor %d has function NONE. Will not be able to connect to it.", monitor_id); return false; } if ( !monitor->ShmValid() ) {