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

fix: logging middleware with multi-body response #3478

Merged
merged 2 commits into from
May 8, 2024

Conversation

peterschutt
Copy link
Contributor

Prevent logging middleware from failing with a KeyError when a response sends multiple "http.response.body" messages.

Closes #3477

Description

Closes

@peterschutt peterschutt requested review from a team as code owners May 8, 2024 03:33
@github-actions github-actions bot added area/middleware This PR involves changes to the middleware size: small type/bug pr/internal labels May 8, 2024
Prevent logging middleware from failing with a KeyError when a response sends multiple "http.response.body" messages.

Closes #3477
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.29%. Comparing base (9fd80e2) to head (2c26a64).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3478   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files         328      328           
  Lines       14874    14876    +2     
  Branches     2360     2361    +1     
=======================================
+ Hits        14621    14623    +2     
  Misses        116      116           
  Partials      137      137           

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

Copy link

sonarcloud bot commented May 8, 2024

Copy link

github-actions bot commented May 8, 2024

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3478

@peterschutt peterschutt merged commit 56b7395 into main May 8, 2024
28 checks passed
@peterschutt peterschutt deleted the 3477-logging-mw-multi-body branch May 8, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/middleware This PR involves changes to the middleware pr/internal size: small type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Multi-body response incompatible with LoggingMiddleware
3 participants