windyrjc commented on a change in pull request #5501:
URL: https://github.com/apache/apisix/pull/5501#discussion_r748851957
##########
File path: apisix/utils/log-util.lua
##########
@@ -119,13 +120,32 @@ local function get_full_log(ngx, conf)
}
if conf.include_req_body then
- local body = req_get_body_data()
- if body then
- log.request.body = body
- else
- local body_file = ngx.req.get_body_file()
- if body_file then
- log.request.body_file = body_file
+
+ local log_request_body = true
+
+ if conf.request_body_expr then
+ local request_expr, err = expr.new(conf.request_body_expr)
Review comment:
done
--
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]