forked from Github/frigate
better log message when corrupt segment detected
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user