-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(debug-log): WP_DEBUG_LOG should be true
by default
#505
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.
Makes sense 👍
Actually.. this goes counter to what we decided in #499. If the default in the config is |
Yes, that's even better. Or remove the line entirely (or comment it out), which will fallback to default value of My reasoning for setting it to |
We should just remove it imo. This doesn't even seem like a setting that will vary between environments? Since it primarily a development only setting. |
In that case, perhaps we should move it to |
I'm good with that since the two other debug related settings are already in there. @austinpray I know our goal is to minimize env specific settings but I think this makes sense? |
Yeah LGTM! |
Why we don't encourage setting |
Latest commit changes a few things:
The last one there is probably what needs the most consideration. Do we want it |
@QWp6t think we just lost track of this, want to update it? |
Will do. I think I just need to add that |
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.
I think this is an improvement 👍
Setting WP_DEBUG_LOG to `true` will cause WP to automatically log debug output to <WP_CONTENT>/debug.log (so app/debug.log) which is a sensible default. This also comments out the old placeholder value in `.env.example` since `true` is a better default.
* Switch to GitHub actions (roots#597) * Update build status badge * Move disallow indexing mu-plugin to package (roots#521) Co-authored-by: QWp6t <hi@qwp6t.me> Co-authored-by: Scott Walkinshaw <scott.walkinshaw@gmail.com> * Support .env.local config override (roots#594) If `.env.local` exists, any values will override and take precedence over those in `.env`. This is meant for local development only. * Default to `WP_DEBUG_LOG=true` in development (roots#505) Setting WP_DEBUG_LOG to `true` will cause WP to automatically log debug output to <WP_CONTENT>/debug.log (so app/debug.log) which is a sensible default. This also comments out the old placeholder value in `.env.example` since `true` is a better default. Co-authored-by: Scott Walkinshaw <scott.walkinshaw@gmail.com> Co-authored-by: Ben Word <ben@benword.com> Co-authored-by: QWp6t <hi@qwp6t.me> Co-authored-by: QWp6t <QWp6t@users.noreply.github.com>
Setting WP_DEBUG_LOG to
true
will cause WP to automatically log debug output to <WP_CONTENT>/debug.log (so app/debug.log). This is a sensible default.See: https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log