tzssangglass commented on issue #5415:
URL: https://github.com/apache/apisix/issues/5415#issuecomment-959461539


   it looks strange,   if the `ext-plugin-pre-req plugin` is not enabled in 
`config.yaml`, the plugin runner's logs should not be output.
   
   well, I know why. even if the `ext-plugin-pre-req plugin` is not enabled in 
`config.yaml`,  APISIX will still run the plugin runner in the 
`http_init_worker` phase.
   
   see: 
https://github.com/apache/apisix/blob/10833592282787352ee9960ca1c5593985b785bb/apisix/init.lua#L130
   
   
https://github.com/apache/apisix/blob/10833592282787352ee9960ca1c5593985b785bb/apisix/plugins/ext-plugin/init.lua#L778-L797
   
   so we should check in the `init_worker` function of `ext-plugin-*` that 
`ext-plugin-*` is enabled.
   
   PR is welcome!


-- 
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: notifications-unsubscr...@apisix.apache.org

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


Reply via email to