Filter out noisy error (#2032)
This commit is contained in:
@@ -29,6 +29,7 @@ import (
|
|||||||
"github.com/pion/interceptor/pkg/gcc"
|
"github.com/pion/interceptor/pkg/gcc"
|
||||||
"github.com/pion/interceptor/pkg/twcc"
|
"github.com/pion/interceptor/pkg/twcc"
|
||||||
"github.com/pion/rtcp"
|
"github.com/pion/rtcp"
|
||||||
|
"github.com/pion/sctp"
|
||||||
"github.com/pion/sdp/v3"
|
"github.com/pion/sdp/v3"
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@@ -831,7 +832,9 @@ func (t *PCTransport) CreateDataChannel(label string, dci *webrtc.DataChannelIni
|
|||||||
}
|
}
|
||||||
|
|
||||||
dcErrorHandler := func(err error) {
|
dcErrorHandler := func(err error) {
|
||||||
t.params.Logger.Errorw(dc.Label()+" data channel error", err)
|
if !errors.Is(err, sctp.ErrResetPacketInStateNotExist) {
|
||||||
|
t.params.Logger.Errorw(dc.Label()+" data channel error", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
t.lock.Lock()
|
t.lock.Lock()
|
||||||
|
|||||||
Reference in New Issue
Block a user