From cac8d39aff95b460852e7abc259b682ece3a75ff Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Thu, 20 Nov 2025 18:58:53 -0500 Subject: [PATCH] chore: enhance logging for `after_start/1` callback to include stop reason Signed-off-by: Yordis Prieto --- lib/commanded/event/handler.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commanded/event/handler.ex b/lib/commanded/event/handler.ex index 32f435a9..df6ff842 100644 --- a/lib/commanded/event/handler.ex +++ b/lib/commanded/event/handler.ex @@ -929,7 +929,9 @@ defmodule Commanded.Event.Handler do {:noreply, new_state} {:stop, reason} -> - Logger.debug(describe(state) <> " `after_start/1` callback has requested to stop") + Logger.info( + describe(state) <> " `after_start/1` callback has requested to stop: #{inspect(reason)}" + ) {:stop, reason, state} end