-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(file-logger): support standard output for file logger plugins #8681
Conversation
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.
Can you add a test in https://github.com/apache/apisix/tree/master/t/cli?
I'm not quite sure how to capture the standard output in E2E testing. Could you please give me some hints if you're available? @spacewander |
You can add a custom configuration to let APISIX don't run as a daemon. See https://github.com/apache/apisix/blob/master/docs/en/latest/customize-nginx-configuration.md |
The test has been added. Please take a look if you're available. @spacewander |
@spacewander It looks like the connection to the ETCD in one environment is down, causing CI to fail. Would you mind restarting the CI and reviewing my code? |
chore: fmt code chore: add test chore: fmt code chore: fmt code chore: fix lint chore: fmt code chore: fmt code
chore: remove specify listen port in test config chore: improve the code
fix lint fix: add test path fix ci fix test fix test
util.execute_cmd(env.openresty_args) | ||
local data, err = util.execute_cmd(env.openresty_args) | ||
if not err and data and data ~= "" then | ||
print(data) |
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.
It is useless to print the access log only after the Nginx exited.
@@ -0,0 +1,82 @@ | |||
#!/usr/bin/env bash | |||
|
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.
Could we remove the intermediate directory, so this file can be tested without modifying the ci script?
Description
support standard output for file logger plugins
Fixes #6797
Checklist