In plugin error-log-logger:
function _M.init()
timers.register_timer("plugin#error-log-logger", process, true)
end
this timer will run on privileged agent, but in function process, it will call ngx.worker.id(), whitch will return nil.
local function process()
....
local id = ngx.worker.id()
....
buffers[id] = log_buffer
....
end
it seems a bug, did i miss something?
In plugin
error-log-logger:this timer will run on privileged agent, but in function
process, it will callngx.worker.id(), whitch will returnnil.it seems a bug, did i miss something?