Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*): fix worker notice logging when setting dynamic log level (#10897
) This PR fixes a bug when worker consuming dynamic log level setting event and using a wrong reference for notice logging ``` 2023/05/18 14:29:06 [error] 23010#0: *3 [lua] callback.lua:98: do_handlerlist(): worker-events: event callback failed; source=debug, event=log_level, wid=0 error='./kong/runloop/handler.lua:937: bad argument #2 to 'log' (expected table to have __tostring metamethod) stack traceback: [C]: in function 'log' ./kong/runloop/handler.lua:937: in function <./kong/runloop/handler.lua:925> [C]: in function 'xpcall' ...uild/kong-dev/openresty/lualib/resty/events/callback.lua:83: in function 'do_handlerlist' ...uild/kong-dev/openresty/lualib/resty/events/callback.lua:130: in function 'do_event' .../build/kong-dev/openresty/lualib/resty/events/worker.lua:68: in function 'do_event' .../build/kong-dev/openresty/lualib/resty/events/worker.lua:239: in function <.../build/kong-dev/openresty/lualib/resty/events/worker.lua:221>', data={"timeout":60,"log_level":8}, context: ngx.timer ```
- Loading branch information
76170a1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:76170a1bc2130dc719f149094559b63877c4b34d
Artifacts available https://github.com/Kong/kong/actions/runs/5021968370