From c6044ba9a1ca40830df63b14b746dc8961e5ecde Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 22 Jan 2021 17:54:30 -0600 Subject: [PATCH] add debug log when cache is cleaned up --- frigate/events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/events.py b/frigate/events.py index 1f33cee4a..d65ab3e9f 100644 --- a/frigate/events.py +++ b/frigate/events.py @@ -95,6 +95,7 @@ class EventProcessor(threading.Thread): for f, data in list(self.cached_clips.items()): if earliest_event-90 > data['start_time']+data['duration']: del self.cached_clips[f] + logger.debug(f"Cleaning up cached file {f}") os.remove(os.path.join(CACHE_DIR,f)) def create_clip(self, camera, event_data, pre_capture, post_capture):