alanj853
Hi,
I have noticed that Application.stop/1 calls are no longer being reported by erlang’s :error_logger in the same way with version 1.15.0. It was working with version 1.14.5.
See this sample module for an example. I use poison as the application to stop, but it could be any application that has started:
defmodule GenEventTester do
@moduledoc """
Documentation for `GenEventTester`.
"""
@behaviour :gen_event
require Logger
@impl :gen_event
def init(_) do
Logger.notice("init/1 has been called")
{:ok, %{}}
end
@impl :gen_event
def handle_event(msg, state) do
Logger.notice("handle_event/2 has been called: #{inspect(msg)}")
{:ok, state}
end
@impl :gen_event
def handle_call(msg, state) do
Logger.notice("handle_call/2 has been called: #{inspect(msg)}")
{:ok, :ok, state}
end
end
Running this with Elixir 1.14.5:
Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
==> poison
Compiling 4 files (.ex)
Generated poison app
==> gen_event_tester
Compiling 1 file (.ex)
Generated gen_event_tester app
Interactive Elixir (1.14.5) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :error_logger.add_report_handler GenEventTester, []
09:08:57.338 [notice] init/1 has been called
:ok
iex(2)> Application.stop :poison
09:09:08.441 [notice] handle_event/2 has been called: {:info_report, #PID<0.70.0>, {#PID<0.44.0>, :std_info, [application: :poison, exited: :stopped, type: :temporary]}}
:ok
09:09:08.441 [notice] Application poison exited: :stopped
iex(3)>
Running this with Elixir 1.15.0:
Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Interactive Elixir (1.15.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :error_logger.add_report_handler GenEventTester, []
09:10:53.747 [notice] init/1 has been called
:ok
iex(2)> Application.stop :poison
09:11:08.419 [notice] Application poison exited: :stopped
:ok
iex(3)>
Interestingly, the gen_event behaviour is being used somewhat, as the init/1 callback is called.
Does anybody know how to get the handle_event/2 callbacks to be called with Elixir 1.15.0, and/or know why this is happening?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex









