-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 error_reporting(0) to ini_set('display_errors', 0); #1398
Conversation
@@ -52,20 +52,23 @@ | |||
* By default development will show errors but testing and live will hide them. | |||
*/ | |||
|
|||
if (defined('ENVIRONMENT')) | |||
// By default show all except notifications, deprecated and strict errors | |||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT); |
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.
Locally I want to see every single possible error, warning, notice, etc.
@philsturgeon Good call. Although I would like to E_ALL be logged on production too, I guess there is a possibility that, on some setups, it could possibly make php log files too large. What do you think? |
Looks good to me. Add a changelog entry and unless Phil and/or Alex disagree I'll merge it. |
Seems good. |
Might also be a good idea to add this, prior to the
|
Referencing issue #135. |
Change error_reporting(0) to ini_set('display_errors', 0);
Changed error reporting regarding issue #1386