mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Only report progress every 10 events so we don't spam the logs and websocket
This commit is contained in:
parent
a7f2cd36d0
commit
d6d1108620
@ -218,7 +218,8 @@ class Embeddings:
|
||||
|
||||
totals["processed_objects"] += 1
|
||||
|
||||
# display progress debug message every batch_size events
|
||||
# report progress every 10 events so we don't spam the logs or websocket
|
||||
if (processed_events % 10) == 0:
|
||||
progress = (processed_events / total_events) * 100
|
||||
logger.debug(
|
||||
"Processed %d/%d events (%.2f%% complete) | Thumbnails: %d, Descriptions: %d",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user