Skip to content
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

Handle HTTPX:ErrorResponses and add Logging #24

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

obahareth
Copy link
Contributor

@obahareth obahareth commented Dec 20, 2023

  • Add a new verbose option to ZATCA::Client that logs requests and responses when true, defaulted to false.
  • When there is an API error, parse HTTPX::ErrorResponse into a hash and return it.

- Add a new `verbose` option to ZATCA::Client that logs requests and responses when `true`, defaulted to `false`.
- When there is an error, parse HTTPX::ErrorResponse into a hash and return it.
@obahareth obahareth merged commit d3502d5 into main Dec 20, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant