Merge pull request #19867 from Jose123456/error-logging

Set error_logging correctly. Fixes #19847
This commit is contained in:
Roeland Jago Douma 2020-03-10 19:45:40 +01:00 committed by GitHub
commit 0a6ba15bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -602,8 +602,12 @@ class OC {
\OC::$server->getEventLogger()->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd);
\OC::$server->getEventLogger()->start('boot', 'Initialize');
// Override php.ini and log everything if we're troubleshooting
if (self::$config->getValue('loglevel') === ILogger::DEBUG) {
error_reporting(E_ALL);
}
// Don't display errors and log them
error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '0');
@ini_set('log_errors', '1');