jinjianming opened a new issue, #9863:
URL: https://github.com/apache/apisix/issues/9863

   ### Description
   
   I can print custom plugin logs normally by placing them in the 
`/usr/local/apisix/apisix/plugins` path locally.
   
   The production environment is deployed through helm, and custom plugins are 
placed in `extra_ Lua_ Path: "/opt/custom_plugins/?. lua"`
   
   Starting Apisix does not have a customized log. It is possible to 
successfully load the custom plugin through the list interface, but the log 
does not print my predefined loading log
   
   `curl http://127.0.0.1:9180/apisix/admin/plugins/list -H'X-API-KEY: xxx '`
   
   
   code snippet
   
   ```
   local function updateCache()
       core.log.info("------------ update cache start ------------")
       local httpc = http.new()
       local res, err = httpc:request_uri(url, {
           method = "GET",
           path = "/api/v1/multilingualContent",
           headers = {
               ["Content-Type"] = "application/json",
           },
       })
       httpc:close()
   
   function _M.init()
       timer.new("plugin#response-multilingual", updateCache, 
{check_interval=180})
   end
   ``` 
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.2.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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