From 7bc2c6dbc5339fbd683d3f1ed2055252a994c2e8 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 4 May 2018 12:04:28 -0500 Subject: [PATCH] Downgrade Unable to send stream to warning Downgraded this from en Error to a Warning. This message can trigger following the normal closing of a monitor. Thus, it's not necessarily an error. --- 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 d41b73a70..48d83200c 100644 --- a/src/zm_monitorstream.cpp +++ b/src/zm_monitorstream.cpp @@ -330,7 +330,7 @@ bool MonitorStream::sendFrame(const char *filepath, struct timeval *timestamp) { fprintf(stdout, "Content-Length: %d\r\n", img_buffer_size); if ( fwrite(img_buffer, img_buffer_size, 1, stdout) != 1 ) { if ( ! zm_terminate ) - Error("Unable to send stream frame: %s", strerror(errno)); + Warning("Unable to send stream frame: %s", strerror(errno)); return false; } fputs("\r\n\r\n", stdout); @@ -407,7 +407,7 @@ bool MonitorStream::sendFrame(Image *image, struct timeval *timestamp) { if ( fwrite(img_buffer, img_buffer_size, 1, stdout) != 1 ) { if ( !zm_terminate ){ // If the pipe was closed, we will get signalled SIGPIPE to exit, which will set zm_terminate - Error("Unable to send stream frame: %s", strerror(errno)); + Warning("Unable to send stream frame: %s", strerror(errno)); } return false; }