Skip to content

Commit

Permalink
Add debug logs to async concat
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Sep 24, 2024
1 parent e5f926e commit a95f5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cam/cam.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,14 @@ func (vs *videostore) asyncSave(ctx context.Context, from, to time.Time, path st
defer timer.Stop()
select {
case <-timer.C:
vs.logger.Debugf("running async save command for %s", path)
vs.logger.Debugf("executing concat for %s", path)
err := vs.conc.concat(from, to, path)
if err != nil {
vs.logger.Error("failed to concat files ", err)
}
return
case <-ctx.Done():
vs.logger.Error("AsyncSave operation cancelled or timed out")
vs.logger.Error("asyncSave operation cancelled or timed out")
return
}
}
Expand Down

0 comments on commit a95f5f2

Please sign in to comment.