-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
config: change the default error reporting level in production #8219
config: change the default error reporting level in production #8219
Conversation
I kindly disagree. In a production environment, we generally want to suppress certain types of errors and notices that will not impact the end user. This could potentially cause our logs to grow to horrible sizes. Also, the readability of logs would suffer. Early warning and issues should be caught in a development environment or potentially in staging. |
Thanks for your comment. I don't believe PHP's error level can tell the errors and notices will impact the end user or not. Of course, if your app works already with Warnings and Notices, you need to suppress errors. |
👋 Hi, @kenjis! |
7b68ea9
to
b6ab73f
Compare
I don't know that this is a place for the framework to exert a strong opinion. What are the defaults these days in production versus development php.ini files? I would consider either mirroring those or commenting this out entirely to pass handling to the INI. |
|
Hmm interesting. So it looks like E_ALL & ~E_DEPRECATED That seems reasonable to me since deprecations are frequently unavoidable in production (I have third-party libraries trigger them all the time). There's a certain weight of argument though to the fact that we've been suppressing these since alpha 1. |
b6ab73f
to
2a2748d
Compare
Okay, that seems reasonable. Changed to |
2a2748d
to
90348ef
Compare
👋 Hi, @kenjis! |
In production in many cases -1 is also appropriate.
90348ef
to
017a5c4
Compare
Rebased to resolve conflict. |
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.
Good by me! @michalsn any further pushback?
Description
There is no reason to change error level only in production.
Checklist: