-
Notifications
You must be signed in to change notification settings - Fork 12
Raise on status: Log response data #303
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds logging of response data when HTTP requests fail, building on PR #302 which added detail messages to HTTPError responses. The goal is to provide better visibility into why requests fail by logging the complete response data.
Changes:
- Added logging and json imports to support response data logging
- Modified
RestApiResponseclass to include a logger instance - Enhanced
raise_for_statusmethod to log full response data before raising HTTPRequestError
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
BigRoy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changelog Description
Log data of failed response.
Additional review information
This is follow up to prematurely merged PR #302 .
Testing notes: