Skip to content

Commit

Permalink
Make logs errors and remove something used for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Jun 11, 2024
1 parent 47c2b62 commit 9fe3e57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/engine/pa_messages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ defmodule Engine.PaMessages do
|> handle_inactive_pa_messages(state.pa_message_timers_table)

{:error, %HTTPoison.Response{status_code: status_code, body: body}} ->
Logger.warn("pa_messages_response_error: status_code=#{status_code} body=#{body}")
Logger.error("pa_messages_response_error: status_code=#{status_code} body=#{body}")

{:error, %HTTPoison.Error{reason: reason}} ->
Logger.warn("pa_messages_response_error: reason=#{reason}")
Logger.error("pa_messages_response_error: reason=#{reason}")

{:error, error} ->
Logger.warn("pa_messages_response_error: error=#{inspect(error)}")
Logger.error("pa_messages_response_error: error=#{inspect(error)}")
end

{:noreply, state}
Expand Down Expand Up @@ -76,7 +76,7 @@ defmodule Engine.PaMessages do
visual_text: visual_text,
audio_text: audio_text,
priority: priority,
sign_ids: ["Silver_Line.South_Station_EB" | sign_ids],
sign_ids: sign_ids,
interval_in_ms: interval_in_minutes * @minute_in_ms
}

Expand Down

0 comments on commit 9fe3e57

Please sign in to comment.