You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/05/11 05:20:28 UTC

[GitHub] [incubator-apisix] moonming commented on a change in pull request #1545: Option to include request body in log util

moonming commented on a change in pull request #1545:
URL: https://github.com/apache/incubator-apisix/pull/1545#discussion_r422786453



##########
File path: apisix/utils/log-util.lua
##########
@@ -56,6 +56,12 @@ local function get_full_log(ngx)
         start_time = ngx.req.start_time() * 1000,
         latency = (ngx.now() - ngx.req.start_time()) * 1000
     }
+
+    if conf.include_req_body then
+        log.request.body = ngx.req.get_body_data()

Review comment:
       yes, I think we shoud do.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org