From b63044bd3f8416b16132afc3dc04797f3f6aa0ab Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Fri, 11 Oct 2024 13:09:14 +0200 Subject: [PATCH] chore: add a trace of which notification we receive --- webrtc/sctp/sctp_connection.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webrtc/sctp/sctp_connection.nim b/webrtc/sctp/sctp_connection.nim index d671cec..97aa631 100644 --- a/webrtc/sctp/sctp_connection.nim +++ b/webrtc/sctp/sctp_connection.nim @@ -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)