From a76128e9c468bcb979cdd74cbd5c1d737319db36 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 1 Jan 2022 18:56:13 -0500 Subject: [PATCH] include monitor->Importance when logging failed camera connects --- src/zm_ffmpeg_camera.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_ffmpeg_camera.cpp b/src/zm_ffmpeg_camera.cpp index 728b51783..2b36c34f6 100644 --- a/src/zm_ffmpeg_camera.cpp +++ b/src/zm_ffmpeg_camera.cpp @@ -295,7 +295,8 @@ int FfmpegCamera::OpenFfmpeg() { ret = avformat_open_input(&mFormatContext, mPath.c_str(), nullptr, &opts); if ( ret != 0 ) { - Error("Unable to open input %s due to: %s", mPath.c_str(), + logPrintf(Logger::ERROR + monitor->Importance(), + "Unable to open input %s due to: %s", mPath.c_str(), av_make_error_string(ret).c_str()); if ( mFormatContext ) {