Log size along with ring buffer error.

This commit is contained in:
scruzin 2019-11-22 10:10:02 +10:30
parent 7da3778485
commit 980e48c22c
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ func (s *mtsSender) Write(d []byte) (int, error) {
s.ring.Flush() s.ring.Flush()
} }
if err != nil { if err != nil {
s.log(logger.Warning, pkg+"mtsSender: ringBuffer write error", "error", err.Error()) s.log(logger.Warning, pkg+"mtsSender: ringBuffer write error", "error", err.Error(), "size", len(s.buf))
} }
s.buf = s.buf[:0] s.buf = s.buf[:0]
} }