feat: log shutdown signal cause#83
Conversation
Use context.Cause(ctx) to include the OS signal that triggered shutdown (SIGINT/SIGTERM) in the log message.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single-line modification to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
context.Cause(ctx)to the shutdown log linesignal.NotifyContextcancel cause, which automatically sets the context cause to the received signalTest plan
make testpasses (all existing tests green)make lintpasses (0 issues)Ctrl-C), verify log includes"cause":"signal: interrupt""cause":"signal: terminated"Summary by CodeRabbit