chore: fix selected candidate pair logging

This commit is contained in:
braginini 2022-02-17 08:36:37 +01:00
parent e5dcd4753e
commit 1c2c1a876b

View File

@ -304,8 +304,8 @@ func (conn *Conn) onICECandidate(candidate ice.Candidate) {
} }
func (conn *Conn) onICESelectedCandidatePair(c1 ice.Candidate, c2 ice.Candidate) { func (conn *Conn) onICESelectedCandidatePair(c1 ice.Candidate, c2 ice.Candidate) {
log.Debugf("selected candidate pair [local <-> remote] -> [%s <-> %s], peer %s", conn.config.Key, log.Debugf("selected candidate pair [local <-> remote] -> [%s <-> %s], peer %s", c1.String(), c2.String(),
c1.String(), c2.String()) conn.config.Key)
} }
// onICEConnectionStateChange registers callback of an ICE Agent to track connection state // onICEConnectionStateChange registers callback of an ICE Agent to track connection state