feat(weather): add mount-time diagnostic logging for valid_times discovery
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 10m15s
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 10m15s
This commit is contained in:
parent
1efde881a3
commit
08fe568cd7
1 changed files with 8 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ defmodule MicrowavepropWeb.WeatherMapLive do
|
|||
alias Microwaveprop.Weather.MapLayers
|
||||
alias MicrowavepropWeb.WeatherMapComponent
|
||||
|
||||
require Logger
|
||||
|
||||
@layers MapLayers.all()
|
||||
@default_layer MapLayers.default_id()
|
||||
|
||||
|
|
@ -41,9 +43,14 @@ defmodule MicrowavepropWeb.WeatherMapLive do
|
|||
# the LiveView socket join timeout. The client now paints weather
|
||||
# through a tile endpoint, so mount only needs the selected layer
|
||||
# and valid_time metadata.
|
||||
valid_times = recent_valid_times(Weather.available_weather_valid_times())
|
||||
all_vts = Weather.available_weather_valid_times()
|
||||
valid_times = recent_valid_times(all_vts)
|
||||
initial_vt = pick_initial_valid_time(valid_times)
|
||||
|
||||
Logger.info(
|
||||
"WeatherMapLive.mount: all_vts=#{length(all_vts)} recent_vts=#{length(valid_times)} initial_vt=#{inspect(initial_vt)}"
|
||||
)
|
||||
|
||||
{lat, lon, zoom} = parse_viewport_params(params)
|
||||
|
||||
{:ok,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue