From 3c46a33992470f8b5e418f297d5011a692dd66ed Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Wed, 20 Jul 2022 06:55:06 -0500 Subject: [PATCH] revert false warning messages --- frigate/record.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/frigate/record.py b/frigate/record.py index 89576bdeb..5e3384ea4 100644 --- a/frigate/record.py +++ b/frigate/record.py @@ -101,13 +101,19 @@ class RecordingMaintainer(threading.Thread): for camera in grouped_recordings.keys(): segment_count = len(grouped_recordings[camera]) if segment_count > keep_count: - logger.warning( - f"Too many recording segments in cache for {camera}. Keeping the {keep_count} most recent segments out of {segment_count}, discarding the rest..." - ) + #### + # Need to find a way to tell if these are aging out based on retention settings or if the system is overloaded. + #### + # logger.warning( + # f"Too many recording segments in cache for {camera}. Keeping the {keep_count} most recent segments out of {segment_count}, discarding the rest..." + # ) to_remove = grouped_recordings[camera][:-keep_count] for f in to_remove: cache_path = f["cache_path"] - logger.warning(f"Discarding a recording segment: {cache_path}") + #### + # Need to find a way to tell if these are aging out based on retention settings or if the system is overloaded. + #### + # logger.warning(f"Discarding a recording segment: {cache_path}") Path(cache_path).unlink(missing_ok=True) self.end_time_cache.pop(cache_path, None) grouped_recordings[camera] = grouped_recordings[camera][-keep_count:]