DONT FAIL FOREVER ON 1 BLACKOUT FILE loser
parent
03565e4fbc
commit
eb12586a40
|
|
@ -115,12 +115,13 @@ func Run(ctx context.Context, args []string) error {
|
|||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return err
|
||||
log.Println("failed series", series, ":", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for _, cam := range cams {
|
||||
if err := func() error {
|
||||
camMovementD := strings.ReplaceAll(cam, "record", "movement")
|
||||
|
||||
movementFiles, err := lsf(camMovementD)
|
||||
|
|
@ -157,6 +158,10 @@ func Run(ctx context.Context, args []string) error {
|
|||
sizeOfCamDMiB -= oldestFileSizeMiB
|
||||
movementFiles = movementFiles[1:]
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
log.Println("failed to cap size of cam", cam, " dir:", err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue