Skip to content

fix(logger): respect request body expr in origin logs#13580

Open
guankai wants to merge 1 commit into
apache:masterfrom
guankai:fix-logger-origin-body-expr
Open

fix(logger): respect request body expr in origin logs#13580
guankai wants to merge 1 commit into
apache:masterfrom
guankai:fix-logger-origin-body-expr

Conversation

@guankai

@guankai guankai commented Jun 21, 2026

Copy link
Copy Markdown

Description

include_req_body_expr was already checked before reading the request body and in the default logger format, but the origin-format request log path did not use the same check before appending the body.

This makes the origin request log path follow the same request-body decision as the other logger paths. It also avoids appending an empty body value when no request body is available.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant