Merge pull request #28512 from nextcloud/feature/output_exception_in_cron

Output exception in cron
pull/28185/head
John Molakvoæ 5 years ago committed by GitHub
commit 6752388c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cron.php

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

Loading…
Cancel
Save