Log ICE connection info on failure. (#3134)

- Truncate public remote IP
- Log only on short connection to avoid logging too much
This commit is contained in:
Raja Subramanian
2024-10-24 14:30:04 +05:30
committed by GitHub
parent ca77df8212
commit b8c6b1f1ec
6 changed files with 60 additions and 20 deletions
+2 -1
View File
@@ -19,6 +19,7 @@ import (
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/sfu/streamallocator"
"github.com/livekit/protocol/livekit"
)
@@ -36,7 +37,7 @@ type Handler interface {
OnICECandidate(c *webrtc.ICECandidate, target livekit.SignalTarget) error
OnInitialConnected()
OnFullyEstablished()
OnFailed(isShortLived bool)
OnFailed(isShortLived bool, iceConnectionInfo *types.ICEConnectionInfo)
OnTrack(track *webrtc.TrackRemote, rtpReceiver *webrtc.RTPReceiver)
OnDataPacket(kind livekit.DataPacket_Kind, data []byte)
OnDataSendError(err error)