-
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
change(debug): move 'enable_debug' form config.yaml to debug.yaml #5046
Conversation
设置 `conf/config.yaml` 中的 `apisix.enable_debug` 为 `true`,即可开启基本调试模式。 | ||
设置 `conf/debug.yaml` 中的 `enable_debug` 为 `true`,即可开启基本调试模式。 |
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.
Hi, for those who using apisix versions before 2.9.0, this document may be confused
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.
We can add a note for the version before 2.10.0?
conf/debug.yaml
Outdated
@@ -14,6 +14,7 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
# | |||
enable_debug: false |
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.
enable_debug: false | |
basic: | |
enable: false |
would be better?
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.
Looks better, but this enable
will conflict with
Line 34 in b52f95b
$debug_config =~ s/enable: false/enable: true/; |
I don't know how to modify this with perl.
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.
Let me do it for you 😃
What this PR does / why we need it:
move 'enable_debug' form config.yaml to debug.yaml, make the configuration of debug mode clear and central
Pre-submission checklist: