Skip to content

Commit b3f709e

Browse files
committed
Imrove log message when trying to send via not connected DTLS/ICE transport
1 parent 8f0f552 commit b3f709e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/ex_webrtc/dtls_transport.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,12 @@ defmodule ExWebRTC.DTLSTransport do
305305

306306
@impl true
307307
def handle_cast({:send_rtp, _data}, state) do
308-
Logger.debug("Attempted to send RTP in wrong DTLS state: #{state.dtls_state}. Ignoring.")
308+
Logger.debug("""
309+
Attempted to send RTP in wrong DTLS/ICE state. \
310+
DTLS state: #{state.dtls_state}, ICE connected: #{state.ice_connected}. \
311+
Ignoring.\
312+
""")
313+
309314
{:noreply, state}
310315
end
311316

0 commit comments

Comments
 (0)