guankai opened a new pull request, #13580: URL: https://github.com/apache/apisix/pull/13580
### 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 - [x] I have explained the need for this PR and the problem it solves - [x] I have explained the changes or the new features added to this PR - [x] I have added tests corresponding to this change - [ ] I have updated the documentation to reflect this change - [x] I have verified that this change is backward compatible -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
