Skip to content

Commit

Permalink
fix: add trace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Feb 1, 2024
1 parent f9cd8bb commit 48ae733
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/connector/webrtc/ice-candidate-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ export const IceCandidateClient = (input: {
peerConnection.addIceCandidate(iceCandidate),
errorIdentity,
)
.map(() => {
logger?.trace(
`🧊⬇️✅ addIceCandidateSuccess: ${iceCandidate.candidate}`,
)
return iceCandidate
})
.mapErr(() => {
logger?.trace(`🧊⬇️❌ addIceCandidateError: ${iceCandidate.candidate}`)
return iceCandidate
})

const subscriptions = new Subscription()

Expand Down

0 comments on commit 48ae733

Please sign in to comment.