mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-23 00:18:31 +01:00
better log message when corrupt segment detected
This commit is contained in:
parent
1daffd92fd
commit
7bf7365f6c
@ -99,7 +99,7 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
duration = float(p.stdout.decode().strip())
|
duration = float(p.stdout.decode().strip())
|
||||||
end_time = start_time + datetime.timedelta(seconds=duration)
|
end_time = start_time + datetime.timedelta(seconds=duration)
|
||||||
else:
|
else:
|
||||||
logger.info(f"bad file: {f}")
|
logger.warning(f"Discarding a corrupt recording segment: {f}")
|
||||||
Path(cache_path).unlink(missing_ok=True)
|
Path(cache_path).unlink(missing_ok=True)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user