Maybe you can overwrite handle_info/2 in your supervisor module?
require Logger
def handle_info({:EXIT, pid, reason}, state) do
Logger.info("A child process died: #{reason}")
case restart_child(pid, reason, state) do # it's a private function ... that's a problem
{:ok, state} ->
{:noreply, state}
{:shutdown, state} ->
{:stop, :shutdown, state}
end
end
def handle_info(msg, state) do
Logger:error("Supervisor received unexpected message: #{inspect(msg)}")
{:noreply, state}
end






















