Don't display errors and log them
Fixes https://github.com/owncloud/core/issues/16014
This commit is contained in:
parent
5aa3525479
commit
9530e819eb
|
@ -542,12 +542,10 @@ class OC {
|
|||
\OC::$server->getEventLogger()->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd);
|
||||
\OC::$server->getEventLogger()->start('boot', 'Initialize');
|
||||
|
||||
// set some stuff
|
||||
//ob_start();
|
||||
// Don't display errors and log them
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
if (defined('DEBUG') && DEBUG) {
|
||||
ini_set('display_errors', 1);
|
||||
}
|
||||
@ini_set('display_errors', 0);
|
||||
@ini_set('log_errors', 1);
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
|
|
Loading…
Reference in New Issue