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

Enhancement: Add logging on api endpoints #296

Merged

Conversation

CM000n
Copy link
Collaborator

@CM000n CM000n commented Jan 11, 2024

I found it quite helpful to have a logging option to compare endpoint responses and parsed models.
The hishel and httpx packages provide information by default when logging is enabled. This PR complements therefore the logging for parsed pydantic models of api responses and introduces a central logging config.

@CM000n CM000n marked this pull request as draft January 12, 2024 10:51
@CM000n CM000n marked this pull request as ready for review January 12, 2024 12:29
Repository owner deleted a comment from codecov bot Jan 12, 2024
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (77d1de0) 71.28% compared to head (be4b4d3) 71.01%.

Files Patch % Lines
mytoyota/api.py 11.11% 24 Missing ⚠️
mytoyota/statistics.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
- Coverage   71.28%   71.01%   -0.27%     
==========================================
  Files          28       30       +2     
  Lines        1386     1432      +46     
==========================================
+ Hits          988     1017      +29     
- Misses        398      415      +17     
Flag Coverage Δ
unittests 71.01% <57.37%> (-0.27%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CM000n CM000n merged commit f36b119 into master Jan 13, 2024
25 checks passed
@CM000n CM000n deleted the enhancement/implement_logging_information_for_endpoint_responses branch January 13, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants