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
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
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
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar 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
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
Hey,
Just curious what are the main benefits of Elixir compared to Clojure?
When is Elixir more useful than Clojure and vice versa?
Th...
New
Background
Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New
Other popular topics
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
I would like to know what is the best IDE for elixir development?
New
Hi,
I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
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
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
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 will often find my self writing things similar to:
case some_value do
nil -> something()
"" -> something()
_ -> someth...
New







