Merge pull request #28517 from nextcloud/backport/28512/sable21

[stable21] Output exception in cron
This commit is contained in:
Louis 2021-08-20 09:53:11 +02:00 committed by GitHub
commit ed5472d3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,6 +159,8 @@ try {
exit();
} catch (Exception $ex) {
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
echo $ex . PHP_EOL;
} catch (Error $ex) {
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
echo $ex . PHP_EOL;
}