Skip SendDataPacket logging on transport failure (#2074)

That's a sign of peer connection failure, we do not need to log these
This commit is contained in:
David Zhao
2023-09-15 12:55:54 -07:00
committed by GitHub
parent 044f6cec40
commit 2113557842
+2 -1
View File
@@ -1331,7 +1331,8 @@ func BroadcastDataPacketForRoom(r types.Room, source types.LocalParticipant, dp
utils.ParallelExec(destParticipants, dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) {
err := op.SendDataPacket(dp, dpData)
if err != nil && !errors.Is(err, io.ErrClosedPipe) && !errors.Is(err, sctp.ErrStreamClosed) {
if err != nil && !errors.Is(err, io.ErrClosedPipe) && !errors.Is(err, sctp.ErrStreamClosed) &&
!errors.Is(err, ErrTransportFailure) {
op.GetLogger().Infow("send data packet error", "error", err)
}
})