kamly commented on code in PR #9712:
URL: https://github.com/apache/apisix/pull/9712#discussion_r1254448513
##########
apisix/plugins/file-logger.lua:
##########
@@ -113,6 +121,18 @@ if is_apisix_or then
end
end
+local function vars_match(vars, ctx)
+ local match_result
+ for _, var in ipairs(vars) do
+ local expr, _ = expr.new(var)
+ match_result = expr:eval(ctx.var)
+ if match_result then
+ break
+ end
+ end
+
+ return match_result
+end
local function write_file_data(conf, log_message)
Review Comment:
fix
##########
apisix/plugins/file-logger.lua:
##########
@@ -113,6 +121,18 @@ if is_apisix_or then
end
end
+local function vars_match(vars, ctx)
Review Comment:
fix
--
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]