Skip to content
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

fix: fixed the non effective config update in http-logger #2901

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

tokers
Copy link
Contributor

@tokers tokers commented Nov 30, 2020

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Close #2870


for key, batch in ipairs(buffers) do
if #batch.entry_buffer.entries == 0 and #batch.batch_to_process == 0 then
core.log.debug("removing batch processor stale object, route id:", tostring(key))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use a high level log so that we can notice user. What about using warn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this logic was copied from other x-logger.lua, i'd like to fix all of them in another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spacewander Fixed it in http-logger firstly.

@membphis membphis merged commit fa30c10 into master Dec 1, 2020
@membphis membphis deleted the fix/batch-processor branch December 1, 2020 15:06
@membphis
Copy link
Member

membphis commented Dec 1, 2020

@tokers you should fork APISIX repository and checkout new branch for developing, this is the right way.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: update plugin config for route does not take effect
4 participants