From fb9b7a54ec27c7b434b828d630724c90c2a03442 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Tue, 3 Dec 2024 17:49:44 +0000 Subject: [PATCH 1/2] Demote logging of normal snapshot generation from Info to Debug level --- server/recorder.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/recorder.cpp b/server/recorder.cpp index 04557dd4..693b527b 100644 --- a/server/recorder.cpp +++ b/server/recorder.cpp @@ -108,9 +108,9 @@ void recorder::run() bc_log(Error, "Failed while feeding snapshot saver with more frames"); stop_snapshot(); } else if (ret > 0) { - bc_log(Info, "Still need to feed more frames to finish snapshot"); + bc_log(Debug, "Still need to feed more frames to finish snapshot"); } else { - bc_log(Info, "Finalized snapshot"); + bc_log(Debug, "Finalized snapshot"); stop_snapshot(); snapshots_done++; event_trigger_notifications(current_event); @@ -123,7 +123,7 @@ void recorder::run() + (snapshotting_delay_since_motion_start_ms/1000))) { stop_snapshot(); - bc_log(Info, "Making a snapshot"); + bc_log(Debug, "Making a snapshot"); // Push frames to decoder until picture is taken // In some cases one AVPacket marked as keyframe is not enough, and next @@ -141,9 +141,9 @@ void recorder::run() bc_log(Error, "Failed to make snapshot"); stop_snapshot(); } else if (ret > 0) { - bc_log(Info, "Need to feed more frames to finish snapshot"); + bc_log(Debug, "Need to feed more frames to finish snapshot"); } else { - bc_log(Info, "Saved snapshot from single keyframe"); + bc_log(Debug, "Saved snapshot from single keyframe"); snapshots_done++; stop_snapshot(); event_trigger_notifications(current_event); From e1c092c68fa5c1b02a8c3ee2b00afd12ee29f07c Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Thu, 5 Dec 2024 18:29:53 +0000 Subject: [PATCH 2/2] misc/postinstall.sh: fix misuse of tr --- misc/postinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/postinstall.sh b/misc/postinstall.sh index c3002254..de52d762 100755 --- a/misc/postinstall.sh +++ b/misc/postinstall.sh @@ -345,8 +345,8 @@ case "$1" in exit 1 fi - BC_GENERAL_VERSION=`echo "SELECT value from GlobalSettings WHERE parameter = 'G_DVR_NAME'" \ - | mysql -h "$host" -D"$dbname" -u"$user" -p"$password" | tail -n 1 | tr "Bluecherry DVR v" " "` + BC_GENERAL_VERSION=$(echo "SELECT value from GlobalSettings WHERE parameter = 'G_DVR_NAME'" \ + | mysql -h "$host" -D"$dbname" -u"$user" -p"$password" | tail -n 1 | sed -e "s/Bluecherry DVR v//") if [ $BC_GENERAL_VERSION == 2 ]; then