Skip to content

Commit

Permalink
removing logging comments from utils.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew committed Aug 28, 2024
1 parent ad61c54 commit c4f38ca
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/turn_junebug_expressway_web/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ defmodule TurnJunebugExpresswayWeb.Utils do

def format_message(conn) do
{:ok, body} = Jason.decode(conn.private[:raw_body])
IO.puts("conn#{inspect(conn)}")
# IO.puts(">>> format message")
# # credo:disable-for-next-line
# IO.inspect(body)
Expand Down Expand Up @@ -64,19 +63,13 @@ defmodule TurnJunebugExpresswayWeb.Utils do
def send_message(message, ttl) do
key = Map.get(message, "message_id")
value = Map.get(message, "to_addr")
IO.puts("send_message1")
IO.puts("#{inspect(message)}")
IO.puts("#{inspect(key)}, #{inspect(value)}")
TurnJunebugExpressway.MessageRecipientIdCache.put(:my_cache, key, value, ttl)
TurnJunebugExpressway.MessageEngine.publish_message(message)
end

def send_message(message) do
key = Map.get(message, "message_id")
value = Map.get(message, "to_addr")
IO.puts("send_message2")
IO.puts("#{inspect(message)}")
IO.puts("#{inspect(key)}, #{inspect(value)}")
TurnJunebugExpressway.MessageRecipientIdCache.put(:my_cache, key, value)
TurnJunebugExpressway.MessageEngine.publish_message(message)
end
Expand Down Expand Up @@ -129,12 +122,6 @@ defmodule TurnJunebugExpresswayWeb.Utils do
end

def forward_event(event) do
IO.puts("#{inspect(event)}")

IO.puts(
"#{inspect(MessageRecipientIdCache.get(:my_cache, Map.get(event, "user_message_id")))}"
)

case event |> get_event_status do
{:ignore, _} ->
:ok
Expand Down

0 comments on commit c4f38ca

Please sign in to comment.