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
+1 -1
View File
@@ -1334,7 +1334,7 @@ type AnyTransportHandler struct {
p *ParticipantImpl
}
func (h AnyTransportHandler) OnFailed(isShortLived bool) {
func (h AnyTransportHandler) OnFailed(_isShortLived bool, _ici *types.ICEConnectionInfo) {
h.p.onAnyTransportFailed()
}