mirror of https://github.com/nextcloud/server
Output exception in cron
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
3dc7fd27f1
commit
6afab63e09
2
cron.php
2
cron.php
|
@ -159,8 +159,10 @@ try {
|
||||||
exit();
|
exit();
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
|
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
|
||||||
|
echo $ex . PHP_EOL;
|
||||||
exit(1);
|
exit(1);
|
||||||
} catch (Error $ex) {
|
} catch (Error $ex) {
|
||||||
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
|
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
|
||||||
|
echo $ex . PHP_EOL;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue