Skip to content

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

Merged
membphis merged 3 commits into
masterfrom
fix/batch-processor
Dec 1, 2020
Merged

fix: fixed the non effective config update in http-logger#2901
membphis merged 3 commits into
masterfrom
fix/batch-processor

Conversation

@tokers

@tokers tokers commented Nov 30, 2020

Copy link
Copy Markdown
Contributor

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

Comment thread t/plugin/http-logger.t
Comment thread apisix/plugins/http-logger.lua Outdated

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

membphis commented Dec 1, 2020

Copy link
Copy Markdown
Member

@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