Skip to content

Commit

Permalink
add debug log when cache is cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Jan 22, 2021
1 parent a7739a0 commit c6044ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frigate/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def refresh_cache(self):
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):
Expand Down

0 comments on commit c6044ba

Please sign in to comment.