Skip to content

Commit

Permalink
Fix event cleanup debug logging crash (#15293)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Dec 1, 2024
1 parent 4a5fe41 commit a1fa9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/events/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def expire(self, media_type: EventCleanupType) -> list[str]:
.namedtuples()
.iterator()
)
logger.debug(f"{len(expired_events)} events can be expired")
logger.debug(f"{len(list(expired_events))} events can be expired")
# delete the media from disk
for expired in expired_events:
media_name = f"{expired.camera}-{expired.id}"
Expand Down

0 comments on commit a1fa9de

Please sign in to comment.