Merge pull request #28518 from nextcloud/backport/28512/sable22

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

View file

@ -158,6 +158,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;
}