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

This commit is contained in:
Graham McIntire 2026-08-04 08:08:21 -05:00
parent 1efde881a3
commit 08fe568cd7

View file

@ -6,6 +6,8 @@ defmodule MicrowavepropWeb.WeatherMapLive do
alias Microwaveprop.Weather.MapLayers alias Microwaveprop.Weather.MapLayers
alias MicrowavepropWeb.WeatherMapComponent alias MicrowavepropWeb.WeatherMapComponent
require Logger
@layers MapLayers.all() @layers MapLayers.all()
@default_layer MapLayers.default_id() @default_layer MapLayers.default_id()
@ -41,9 +43,14 @@ defmodule MicrowavepropWeb.WeatherMapLive do
# the LiveView socket join timeout. The client now paints weather # the LiveView socket join timeout. The client now paints weather
# through a tile endpoint, so mount only needs the selected layer # through a tile endpoint, so mount only needs the selected layer
# and valid_time metadata. # 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) 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) {lat, lon, zoom} = parse_viewport_params(params)
{:ok, {:ok,