Skip to content

Commit

Permalink
add duration calculation error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Apr 20, 2022
1 parent 0bdc5eb commit 4c20480
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/duration/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func (s *Service) Reader(r io.Reader) int {
var err error

for err == nil {
log.Printf("[WARN] can't get duration for provided stream: %v", err)
if err = d.Decode(&f, &skipped); err != nil && err != io.EOF {
return 0
}
Expand Down

0 comments on commit 4c20480

Please sign in to comment.