mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +01:00
Fix logging for corrupt segments (#5582)
* Fix logging for corrupt segments * Formatting
This commit is contained in:
parent
9621b4b9a1
commit
d97fa99ec5
@ -171,10 +171,12 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
else:
|
else:
|
||||||
if duration == -1:
|
if duration == -1:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Failed to probe corrupt segment {f}: {p.returncode} - {p.stderr}"
|
f"Failed to probe corrupt segment {cache_path}: {p.returncode} - {p.stderr}"
|
||||||
)
|
)
|
||||||
|
|
||||||
logger.warning(f"Discarding a corrupt recording segment: {f}")
|
logger.warning(
|
||||||
|
f"Discarding a corrupt recording segment: {cache_path}"
|
||||||
|
)
|
||||||
Path(cache_path).unlink(missing_ok=True)
|
Path(cache_path).unlink(missing_ok=True)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user