Skip to content

Commit

Permalink
RTS update_signs: logs include message_type for custom or headway mod…
Browse files Browse the repository at this point in the history
…es (#795)

* feat: include message_type in update_sign logs

* fix: replace "message_type" with "current_config"
  • Loading branch information
sloanelybutsurely authored Jul 15, 2024
1 parent 5734efa commit 9f26a22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/pa_ess/http_updater.ex
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ defmodule PaEss.HttpUpdater do
signs_ui_ms: signs_ui_ms,
top_line: inspect(top_line),
bottom_line: inspect(bottom_line),
sign_id: sign_id
sign_id: sign_id,
current_config:
case Engine.Config.sign_config(sign_id) do
type when is_atom(type) -> type
tuple when is_tuple(tuple) -> elem(tuple, 0)
_ -> nil
end
)

result
Expand Down

0 comments on commit 9f26a22

Please sign in to comment.