wklken opened a new issue, #9756:
URL: https://github.com/apache/apisix/issues/9756
### Current Behavior
the debug.yaml (`enable=false` for all)
```yaml
basic:
enable: false
http_filter:
enable: false
enable_header_name: X-Dynamic-Debug
hook_conf:
enable: false
name: hook_phase
log_level: warn
is_print_input_args: true
is_print_return_value: true
hook_phase:
apisix:
- http_access_phase
- http_header_filter_phase
- http_body_filter_phase
- http_log_phase
#END
```
start apisix, see error.log
```
2023/06/29 08:55:43 open /tmp/grpc-engine-debug.log: permission denied
```
```
ls -alrt /tmp/grpc-engine-debug.log
-rw-r--r-- 1 root root 0 Jun 29 08:55 /tmp/grpc-engine-debug.log
```
and when i remove the `hook_phase` from debug.yaml, the log absent!
so, is the `hook_phase` always works even the `hook_conf.enable=false`?
### Expected Behavior
no error log
### Error Logs
```
2023/06/29 08:55:41 [warn] 40#40: *1 [lua] plugin.lua:202: load(): new
plugins: {...
2023/06/29 08:55:43 open /tmp/grpc-engine-debug.log: permission denied
2023/06/29 08:55:43 open /tmp/grpc-engine-debug.log: permission denied
2023/06/29 08:55:43 open /tmp/grpc-engine-debug.log: permission denied
2023/06/29 08:55:41 [warn] 40#40: *1 [lua] plugin.lua:252: load_stream():
new plugins: {"syslog":true,"mqtt-proxy":true,"limit-conn":true}, context:
init_worker_by_lua*
2023/06/29 08:55:41 [warn] 37#37: *2 [lua] plugin.lua:252: load_stream():
new plugins: {"syslog":true,"mqtt-proxy":true,"limit-conn":true}, context:
init_worker_by_lua*
```
### Steps to Reproduce
1. update the debug.yaml above
2. start apisix 3.2.1
3. see the error.log
### Environment
- APISIX version (run `apisix version`): 3.2.1
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
openresty/1.21.4.1
- 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]