Log ice candidates upon failure (#1325)
This commit is contained in:
@@ -510,7 +510,6 @@ func (t *PCTransport) onPeerConnectionStateChange(state webrtc.PeerConnectionSta
|
|||||||
t.params.Logger.Debugw("peer connection state change", "state", state.String())
|
t.params.Logger.Debugw("peer connection state change", "state", state.String())
|
||||||
switch state {
|
switch state {
|
||||||
case webrtc.PeerConnectionStateConnected:
|
case webrtc.PeerConnectionStateConnected:
|
||||||
t.logICECandidates()
|
|
||||||
isInitialConnection := t.setConnectedAt(time.Now())
|
isInitialConnection := t.setConnectedAt(time.Now())
|
||||||
if isInitialConnection {
|
if isInitialConnection {
|
||||||
if onInitialConnected := t.getOnInitialConnected(); onInitialConnected != nil {
|
if onInitialConnected := t.getOnInitialConnected(); onInitialConnected != nil {
|
||||||
@@ -1383,7 +1382,7 @@ func (t *PCTransport) handleRemoteICECandidate(e *event) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *PCTransport) handleLogICECandidates(e *event) error {
|
func (t *PCTransport) handleLogICECandidates(e *event) error {
|
||||||
t.params.Logger.Debugw(
|
t.params.Logger.Infow(
|
||||||
"ice candidates",
|
"ice candidates",
|
||||||
"lc", t.allowedLocalCandidates,
|
"lc", t.allowedLocalCandidates,
|
||||||
"rc", t.allowedRemoteCandidates,
|
"rc", t.allowedRemoteCandidates,
|
||||||
|
|||||||
Reference in New Issue
Block a user