We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In plugin error-log-logger:
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.
process
ngx.worker.id()
nil
local function process() .... local id = ngx.worker.id() .... buffers[id] = log_buffer .... end
it seems a bug, did i miss something?
The text was updated successfully, but these errors were encountered:
fix(error-log-logger): the logger should be run in each process
bb2ef83
Fix apache#3911 Signed-off-by: spacewander <[email protected]>
c3144f0
spacewander
Successfully merging a pull request may close this issue.
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?
The text was updated successfully, but these errors were encountered: