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

🐛 [#34] Properly log data for error responses #35

Merged

Conversation

stevenbal
Copy link
Contributor

@stevenbal stevenbal commented Feb 8, 2024

Closes #34

@stevenbal stevenbal marked this pull request as draft February 8, 2024 15:24
@stevenbal stevenbal force-pushed the issue/34-properly-log-values-for-error-responses branch from f7f566b to 97ff931 Compare February 8, 2024 15:26
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (978b593) 97.75% compared to head (2f7fa5f) 97.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #35   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files          21       21           
  Lines         445      445           
  Branches       57       57           
=======================================
  Hits          435      435           
  Misses          6        6           
  Partials        4        4           

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

@stevenbal stevenbal force-pushed the issue/34-properly-log-values-for-error-responses branch 2 times, most recently from 2f7fa5f to bb2f31d Compare February 8, 2024 16:12
the handler previously did not log `status_code`, `response_ms` and `res_headers` because truthy checks on `Response` evaluate to false for error responses
@stevenbal stevenbal force-pushed the issue/34-properly-log-values-for-error-responses branch from bb2f31d to 3fb7733 Compare February 8, 2024 16:14
@stevenbal stevenbal marked this pull request as ready for review February 8, 2024 16:15
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... why does Response implement __bool__ 🥲

@sergei-maertens sergei-maertens merged commit 66ff91c into main Feb 8, 2024
16 checks passed
@stevenbal
Copy link
Contributor Author

stevenbal commented Feb 9, 2024

... why does Response implement bool 🥲

my thoughts exactly 😛

@stevenbal stevenbal deleted the issue/34-properly-log-values-for-error-responses branch February 9, 2024 08:05
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.

Certain response values are not logged for responses with an error status code
3 participants