Changing some log levels (#2094)
Logging expected WS close at Infow to understand reasons for closure. Moving "read from ws" to Debugw as it happens when signalling closes. Also filter out a data channel abort chunk log as it shows a bunch of errors, but those are expected though.
This commit is contained in:
@@ -832,7 +832,7 @@ func (t *PCTransport) CreateDataChannel(label string, dci *webrtc.DataChannelIni
|
||||
}
|
||||
|
||||
dcErrorHandler := func(err error) {
|
||||
if !errors.Is(err, sctp.ErrResetPacketInStateNotExist) {
|
||||
if !errors.Is(err, sctp.ErrResetPacketInStateNotExist) && !errors.Is(err, sctp.ErrChunk) {
|
||||
t.params.Logger.Errorw(dc.Label()+" data channel error", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user