diff --git a/revid/senders.go b/revid/senders.go index 914b3701..1517a900 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -247,12 +247,12 @@ func (s *mtsSender) Write(d []byte) (int, error) { s.curPid = int(p) if time.Now().Sub(s.prev) >= s.clipDur && s.curPid == mts.PatPid && len(s.buf) > 0 { s.prev = time.Now() - _, err := s.ring.Write(s.buf) + n, err := s.ring.Write(s.buf) if err == nil { s.ring.Flush() } if err != nil { - s.log(logger.Warning, pkg+"mtsSender: ringBuffer write error", "error", err.Error(), "size", len(s.buf)) + s.log(logger.Warning, pkg+"mtsSender: ringBuffer write error", "error", err.Error(), "n", n, "size", len(s.buf)) } s.buf = s.buf[:0] }