Hi, i'm trying to change the behaviour of the 'DEBUG = 0' mode. When
the DEBUG mode is off, the errors aren't shown in the web browser. This
is really nice in production, but i think it would be nice to hide that
messages in the browser but still, show them in the error_log file, to
check if any error has appeared. I tried to change the behaviour
changing the cake/bootstrap.php file like this:
if (DEBUG) {
error_reporting(E_ALL);
if (function_exists('ini_set')) {
ini_set('display_errors', 1);
}
} else {
error_reporting(E_ALL);
if (function_exists('ini_set')) {
ini_set('display_errors', 0);
}
}
instead :
...
} else {
error_reporting(0);
}
But it doesn't work, the messages aren't shown in the error_log file.
The funny thing is that if i put:
if (DEBUG) {
error_reporting(E_ALL);
if (function_exists('ini_set')) {
ini_set('display_errors', 0);
}
}
It works perfectly as i would like 'DEBUG=0' works, reporting every
message but not showing them in the browser.
I've been browsing the cake code but i can't understand why i can't
report errors when i have 'DEBUG=0'. Is there any other part of the
code that prevents this?
Bye.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---