mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
add debug log when cache is cleaned up
This commit is contained in:
parent
a7739a0a62
commit
c6044ba9a1
@ -95,6 +95,7 @@ class EventProcessor(threading.Thread):
|
|||||||
for f, data in list(self.cached_clips.items()):
|
for f, data in list(self.cached_clips.items()):
|
||||||
if earliest_event-90 > data['start_time']+data['duration']:
|
if earliest_event-90 > data['start_time']+data['duration']:
|
||||||
del self.cached_clips[f]
|
del self.cached_clips[f]
|
||||||
|
logger.debug(f"Cleaning up cached file {f}")
|
||||||
os.remove(os.path.join(CACHE_DIR,f))
|
os.remove(os.path.join(CACHE_DIR,f))
|
||||||
|
|
||||||
def create_clip(self, camera, event_data, pre_capture, post_capture):
|
def create_clip(self, camera, event_data, pre_capture, post_capture):
|
||||||
|
Loading…
Reference in New Issue
Block a user