-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
Http logging #251
Http logging #251
Conversation
updated statics_spec.lua with new plugin
added test cases updated test case
Changes Unknown when pulling af31b0e on http-logging into * on master*. |
end | ||
|
||
function _M.execute(conf) | ||
local ok, err = ngx.timer.at(0, log, conf, ngx.ctx.log_message) |
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.
What is the benefit of putting this into a timer?
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.
@thibaultcha you don't have access to the cosocket API into the log_by_lua
handler, that's why a timer is needed.
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.
Ok
👍 |
🎉 |
Yay |
Without squashing? |
Http logging
No description provided.