Skip to content

Commit 0a6ba15

Browse files
authored
Merge pull request #19867 from Jose123456/error-logging
Set error_logging correctly. Fixes #19847
2 parents 5e4ee4d + 6995e98 commit 0a6ba15

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/base.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,12 @@ public static function init() {
602602
\OC::$server->getEventLogger()->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd);
603603
\OC::$server->getEventLogger()->start('boot', 'Initialize');
604604

605+
// Override php.ini and log everything if we're troubleshooting
606+
if (self::$config->getValue('loglevel') === ILogger::DEBUG) {
607+
error_reporting(E_ALL);
608+
}
609+
605610
// Don't display errors and log them
606-
error_reporting(E_ALL | E_STRICT);
607611
@ini_set('display_errors', '0');
608612
@ini_set('log_errors', '1');
609613

0 commit comments

Comments
 (0)