monkeyDluffy6017 commented on code in PR #9712:
URL: https://github.com/apache/apisix/pull/9712#discussion_r1261500286


##########
apisix/utils/log-util.lua:
##########
@@ -267,6 +287,12 @@ function _M.check_log_schema(conf)
             return nil, "failed to validate the 'include_resp_body_expr' 
expression: " .. err
         end
     end
+    if conf.matches then
+        local ok, err = expr.new(conf.matches)
+        if not ok then
+            return nil, "failed to validate the 'matches' expression: " .. err
+        end
+    end

Review Comment:
   No need to do this in the underlying function, you can do this in the plugin.
   Not every plugin has this configuration `matches`



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

Reply via email to