Skip to content

Commit 53c1333

Browse files
committed
Extend logs on send error
1 parent 68386ad commit 53c1333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ex_ice/priv/ice_agent.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,14 +2571,14 @@ defmodule ExICE.Priv.ICEAgent do
25712571
# Sometimes, when sending the first UDP datagram,
25722572
# we get an eperm error but retrying seems to help ¯\_(ツ)_/¯
25732573
Logger.debug("""
2574-
Couldn't send data, reason: #{reason}, cand: #{inspect(local_cand)}. \
2574+
Couldn't send data to: #{inspect(dst_ip)}:#{dst_port}, reason: #{reason}, cand: #{inspect(local_cand)}. \
25752575
Retyring...\
25762576
""")
25772577

25782578
do_send(ice_agent, local_cand, dst, data, false)
25792579
else
25802580
Logger.debug("""
2581-
Couldn't send data, reason: #{reason}, cand: #{inspect(local_cand)}. \
2581+
Couldn't send data to: #{inspect(dst_ip)}:#{dst_port}, reason: #{reason}, cand: #{inspect(local_cand)}. \
25822582
Closing candidate.\
25832583
""")
25842584

0 commit comments

Comments
 (0)