debug: add some log

This commit is contained in:
langhuihui
2023-10-30 10:11:48 +08:00
parent 8ffe3d3d55
commit 4a9dd2c921
4 changed files with 44 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
package engine
import (
"context"
"encoding/json"
"strings"
"sync"
@@ -479,7 +480,7 @@ func (s *Stream) run() {
s.Warn("no tracks")
lost = true
} else if s.Publisher != nil && s.Publisher.IsClosed() {
s.Warn("publish is closed")
s.Warn("publish is closed", zap.Error(context.Cause(s.Publisher.GetPublisher())), zap.Error(Engine.Err()))
lost = true
}
}