Skip to content

Commit

Permalink
add trace
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Jul 9, 2024
1 parent 3fbfb84 commit 438ad8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions webrtc.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var cfg =

when defined windows:
cfg = cfg & " --clib:ws2_32"
cfg = cfg & " ---d:chronicles_enabled_topics=dtls_conn:TRACE"

import hashes

Expand Down
4 changes: 1 addition & 3 deletions webrtc/dtls/dtls_connection.nim
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ proc dtlsHandshake*(
self.sendFuture = nil
echo "self: ", self.isNil()
if not self.isNil():
echo "self.ctx: ", self.ctx.isNil()
if not self.ctx.isNil():
echo "self.ctx.ssl: ", self.ctx.ssl.isNil()
trace "debug: ", ssl = self.ctx.ssl
let res = mb_ssl_handshake_step(self.ctx.ssl)
if not self.sendFuture.isNil():
await self.sendFuture
Expand Down

0 comments on commit 438ad8b

Please sign in to comment.