Skip to content

Commit

Permalink
chore: add a trace of which notification we receive
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Oct 11, 2024
1 parent c1fc6dc commit b63044b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webrtc/sctp/sctp_connection.nim
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ proc recvCallback*(sock: ptr socket, data: pointer, flags: cint) {.cdecl.} =
streamId: message.info.recvv_rcvinfo.rcv_sid,
)
if bitand(flags, MSG_NOTIFICATION) != 0:
trace "Notification received", length = n
let notif = cast[ptr sctp_notification](data)
trace "Notification received", notifType = notif.sn_header.sn_type
else:
try:
conn.dataRecv.addLastNoWait(message)
Expand Down

0 comments on commit b63044b

Please sign in to comment.