Repository navigation
chore: enhance logging for after_start/1 callback to include stop reason - #36
Conversation
WalkthroughHandle_info for the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
lib/commanded/event/handler.ex (1)
932-934: LGTM! Good observability improvement.The change to info level and including the stop reason enhances observability for handler initialization lifecycle events. The message format is clear and helpful for debugging.
For consistency, consider updating the similar logging pattern for the
before_reset/0callback at lines 897-900, which currently uses debug level:{:stop, reason} -> - Logger.debug( + Logger.info( describe(state) <> " `before_reset/0` callback has requested to stop. (reason: #{inspect(reason)})" )
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
lib/commanded/event/handler.ex(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Quality Assurance (1.18.x, 27)
…eason Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
ec31e5e to
cac8d39
Compare
Note
When
after_start/1returns{:stop, reason}, log at info level and include the stop reason.Written by Cursor Bugbot for commit cac8d39. This will update automatically on new commits. Configure here.