lakewatcher commented on issue #9527:
URL: https://github.com/apache/apisix/issues/9527#issuecomment-1562312568

   I wanted to investigate what exactly went wrong and looked at debug mode.
   
   How to configure a dynamic debug for apisix.discovery.nacos.init.lua ‘s  
function _M.nodes(service_name, discovery_args), if i need print input & output 
info?
   > 如果需要打印 apisix.discovery.nacos.init.lua 中  function _M.nodes(service_name, 
discovery_args)的出入参数,怎么去配置? 
   
   
   
[apache-apisix-runtime-dynamic-debugging](https://apisix.apache.org/zh/blog/2022/08/19/apache-apisix-runtime-dynamic-debugging/#%E5%8A%A8%E6%80%81%E8%B0%83%E8%AF%95%E7%89%B9%E6%80%A7)
   
   I refer to the document above, the configuration is as follows, but it 
doesn't work
   >我参考上面的文档。做出了如下配置,但是不起作用。
   `basic:
     enable: true
   http_filter:
     enable: false         # enable or disable this feature
     enable_header_name: X-APISIX-Dynamic-Debug # the header name of dynamic 
enable
   hook_conf:
     enable: true
     log_level: warn
     is_print_input_args: true
     is_print_return_value: true
     enable_modules:
       - hook_http_access_phase
     modules:
       hook_http_access_phase:
         lua_code_before: |
           ... ...
           core.log.error(core.json.encode(conf))
         apisix.discovery.nacos.init:
           - nodes
   `
   


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