In production we get {removed_failing_handler,'Elixir.Logger'} across multiple Elixir projects. I don’t get a stacktrace or anymore information than that. After that message we don’t see anymore logs until the app is redeployed. I’ve tried turning up our logger level to :debug because it looks like the erlang logger only includes more information at that level. Despite increasing the log level I still don’t see any more information or stacktrace. Any ideas what might cause this or how to get more information?
We are on elixir 1.14.1-otp-25 and erlang 25.3
We are also using LoggerJSON v5.1.2 with a formatter of LoggerJSON.Formatters.DatadogLogger
The cause of this is fairly straightforward: if a log handler crashes, the system will stop sending events to it to try to stabilize things.
What kind of metadata / context are you setting in the logger config? I could see this happening if the formatter tries to encode a term to JSON that doesn’t support it…