windyrjc commented on a change in pull request #5501:
URL: https://github.com/apache/apisix/pull/5501#discussion_r749136068
##########
File path: t/plugin/kafka-logger.t
##########
@@ -1135,7 +1135,7 @@ qr/failed to send data to Kafka topic: .*, brokers:
\{"127.0.0.127":9092}/
"key" : "key1",
"timeout" : 1,
"include_req_body": true,
- "request_body_expr": [
+ "include_req_body_expr": [
[
"remote_addr",
Review comment:
> Use `arg_blah == 1` in the expression, and hit it with "POST
/hello?blah=1" and "POST /hello?blah=2".
I'm using `ctx.var` to eval the expr and `ctx.var` don't have request
param, it only has request urI.If you want to achieve this, i need to eval the
expr by `ngx.req.get_uri_args`
--
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]