Skip to content

Commit 7981dd8

Browse files
committed
Change some logs to debug
Logs about binding response with unknown transaction id may happen pretty ofthen if the other side duplicates connectivity check responses, hence moved to debug. Similarly, logs about sending data in unexpected state may be triggered by transitioning to the failed state and the fact that controlling process haven't processed this notification yet.
1 parent 41f5c8a commit 7981dd8

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
@@ -435,7 +435,7 @@ defmodule ExICE.Priv.ICEAgent do
435435
end
436436

437437
def send_data(%__MODULE__{state: state} = ice_agent, _data) do
438-
Logger.warning("""
438+
Logger.debug("""
439439
Cannot send data in ICE state: #{inspect(state)}. \
440440
Data can only be sent in state :connected or :completed. Ignoring.\
441441
""")
@@ -1295,7 +1295,7 @@ defmodule ExICE.Priv.ICEAgent do
12951295
handle_keepalive_response(ice_agent, local_cand, src_ip, src_port, msg)
12961296

12971297
%Type{class: class, method: :binding} when is_response(class) ->
1298-
Logger.warning("""
1298+
Logger.debug("""
12991299
Ignoring binding response with unknown t_id: #{msg.transaction_id}.
13001300
Is it retransmission or we called ICE restart?
13011301
""")

0 commit comments

Comments
 (0)