I’m in the process of upgrading from Elixir 1.18.4 to 1.19.5, and I’ve run into an issue where errors inside LiveView are no longer appearing in the logs.
For example, if I introduce an obvious error like this in a LiveView:
def handle_event("update_email", params, socket) do
{:ok, user} = socket.assigns.current_scope.user
# intentionally incorrect pattern match
{:noreply, socket}
end
I would expect an error like the one below to be logged, but nothing appears - even though the UI shows a ‘Cannot connect to server’ message and refreshes, indicating the GenServer has crashed:
[error] GenServer #PID<0.869.0> terminating
** (MatchError) no match of right hand side value:
I’ve confirmed this is specific to my project. I created a fresh Phoenix project, and the error appears in the logs as expected there.
The project is fairly large, but configuration-wise it’s mostly vanilla. I do use Sentry for error tracking in production, but the issue persists even after removing it.
At this point, I’m not sure where to look next. Has anyone run into something similar or have any ideas on what might be causing this?
Thanks in advance for any guidance!






















