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:
+2
-1
@@ -1331,7 +1331,8 @@ func BroadcastDataPacketForRoom(r types.Room, source types.LocalParticipant, dp
|
|||||||
|
|
||||||
utils.ParallelExec(destParticipants, dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) {
|
utils.ParallelExec(destParticipants, dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) {
|
||||||
err := op.SendDataPacket(dp, dpData)
|
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)
|
op.GetLogger().Infow("send data packet error", "error", err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user