reduce logs for non-debug runtime
This commit is contained in:
1 parent
5103d87211
commit
d66be97922
39 files changed
+182
-31
No files matched your search
@@ -7,6 +7,8 @@ import (
|
||||
|
||||
"github.com/pion/webrtc/v4"
|
||||
"github.com/pion/webrtc/v4/pkg/media"
|
||||
|
||||
"whitelist-bypass/relay/common"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -210,7 +212,9 @@ func (t *VP8DataTunnel) writerLoop() {
|
||||
continue
|
||||
}
|
||||
if err := t.track.WriteSample(media.Sample{Data: sample, Duration: sampleInterval}); err != nil {
|
||||
t.logFn("vp8tunnel: WriteSample error: %v", err)
|
||||
if common.Debug {
|
||||
t.logFn("vp8tunnel: WriteSample error: %v", err)
|
||||
}
|
||||
continue
|
||||
}
|
||||
n := t.sentFrames.Add(1)
|
||||
|
||||
Reference in new issue
Block a user