Don't display errors and log them

Fixes https://github.com/owncloud/core/issues/16014
This commit is contained in:
Lukas Reschke 2015-05-05 12:34:22 +02:00
parent 5aa3525479
commit 9530e819eb
1 changed files with 3 additions and 5 deletions

View File

@ -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');