From 0edcc5700198ee0a1fb5647cd6fe5ba76c43c202 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Wed, 20 Apr 2022 22:41:46 +0200 Subject: [PATCH] add duration calculation error logging --- app/duration/duration.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/duration/duration.go b/app/duration/duration.go index a50e5898..0cf68711 100644 --- a/app/duration/duration.go +++ b/app/duration/duration.go @@ -34,6 +34,7 @@ func (s *Service) Reader(r io.Reader) int { for err == nil { if err = d.Decode(&f, &skipped); err != nil && err != io.EOF { + log.Printf("[WARN] can't get duration for provided stream: %v", err) return 0 } duration += f.Duration().Seconds()