chore: add more log

This commit is contained in:
langhuihui
2023-10-19 14:30:58 +08:00
parent afabc2777b
commit 3668db0eb6
3 changed files with 11 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ func (s *Subscribers) Find(id string) ISubscriber {
func (s *Subscribers) Delete(suber ISubscriber) {
io := suber.GetSubscriber()
for _, reader := range io.readers {
reader.Track.ReaderCount.Add(-1)
reader.Track.Debug("reader -1", zap.Int32("count", reader.Track.ReaderCount.Add(-1)))
}
if _, ok := s.public[suber]; ok {
delete(s.public, suber)