Skip to content

Commit

Permalink
Improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed May 17, 2024
1 parent 068b330 commit 83ea750
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/ex_ice/priv/gatherer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,10 @@ defmodule ExICE.Priv.Gatherer do
{:halt, socket}

{:error, :eaddrinuse} ->
Logger.debug(
"Couldn't open socket for #{inspect(ip)}:#{inspect(port)}, address in use. Trying next port. "
)

Logger.debug("Address #{inspect(ip)}:#{inspect(port)} in use. Trying next port.")
{:cont, nil}

{:error, reason} ->
ip = Keyword.fetch!(socket_opts, :ip)
Logger.debug("Couldn't open socket for ip: #{inspect(ip)}. Reason: #{inspect(reason)}.")
{:halt, nil}
end
Expand Down

0 comments on commit 83ea750

Please sign in to comment.