-
Notifications
You must be signed in to change notification settings - Fork 35
✨ Ensure addon adapter logs stack traces. #864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Jeff Ortel <[email protected]>
WalkthroughThe changes introduce improved error handling and logging in the addon package. A new error wrapping utility is integrated, used within the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Adapter
participant Handler
participant Logger
User->>Adapter: Run()
Adapter->>Handler: (defer) On error, call Failed(err.Error())
Adapter->>Logger: (defer) On error, log Error(err, "Addon failed.")
Adapter-->>User: Exit with error (if any)
sequenceDiagram
participant Task
participant JSON
participant ErrorWrapper
Task->>JSON: Unmarshal(data, obj)
JSON-->>Task: error (if any)
Task->>ErrorWrapper: Wrap(error)
ErrorWrapper-->>Task: wrapped error
Task-->>Caller: Return wrapped error
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ 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). (3)
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The adapter used to log errors but got removed in some previous patch.
Summary by CodeRabbit