Skip to content

Commit

Permalink
RSDK-7376 Add more logs to dial (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjirewis authored Apr 30, 2024
1 parent 1106568 commit 2c0d911
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/rpc/dial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ Future<ClientChannelBase> _dialWebRtc(String address, DialOptions options, Strin
return;
}

_logger.d('STATS: candidate ${candidate.candidate} gathered');

try {
final candidateProto = ICECandidate();
if (candidate.candidate != null) {
Expand Down Expand Up @@ -458,6 +460,7 @@ Future<ClientChannelBase> _dialWebRtc(String address, DialOptions options, Strin
response.update.candidate.sdpmLineIndex,
);
try {
_logger.d('STATS: adding remote ICE candidate of ${iceCandidate.candidate}');
await peerConnection.addCandidate(iceCandidate);
} catch (error, st) {
_logger.e('Add candidate error', error: error, stackTrace: st);
Expand Down

0 comments on commit 2c0d911

Please sign in to comment.