Stratus3D
Asdf Core Team
Elixir app crashing with unhelpful log messages
I have an Elixir app that I’ve been running for many years, and I deployed it to a new environment and it crashed with the following logs:
{"time":"2024-08-23 19:01:06.799","msg":"Running MyApp.Endpoint with cowboy 2.10.0 at :::8080 (http)","level":"info"}
{"time":"2024-08-23 19:01:06.800","msg":"Access MyApp.Endpoint at http://localhost","level":"info"}
{"time":"2024-08-23 19:01:06.890","msg":"Application my_app exited: shutdown","level":"notice"}
Kernel pid terminated (application_controller) ("{application_terminated,my_app,shutdown}")
The log messages show the the app shutdown, but doesn’t provide any information on why. It’d really like to see a stacktrace or an error report of some kind in the logs. In times past I’d use SASL to ensure I’d get crash reports, but with Erlang 26 I’m not sure what should be done. My config:
config :logger, :default_formatter,
format: {ExJsonLogger, :format},
metadata: [
:action,
:controller,
:duration,
:format,
:method,
:path,
:query_string,
:request_id,
:status
]
config :logger, :default_handler, level: :info
Versions:
erlang 26.2
elixir 1.15.7-otp-26
Marked As Solved
LostKobrakai
That deprecation means sasl messages are no longer managed as a separate system. The messages still exist as plain logs, which use the sasl domain. That domain is how elixir implements the optional filtering.
2
Popular in Questions
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it.
I’m very interested in Elixir,...
New
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this:
...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
Expanding on this topic: https://forum.elixirforum.net/t/map-typespec-question/19217
Let’s say I have a map with required and optional k...
New
Hi,
I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Other popular topics
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
15:22:35.803 [error] gen_event {lager_file_backend...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode.
The solution seems to be, in a hyphena...
New
I would like to know what is the best IDE for elixir development?
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
by Lance Halvorsen
Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
New
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New







