Merge pull request #7818 from nextcloud/log-full-exception-in-cron
Log full exception in cron instead of only the message
This commit is contained in:
commit
1a93e57316
4
cron.php
4
cron.php
|
@ -155,7 +155,7 @@ try {
|
|||
exit();
|
||||
|
||||
} catch (Exception $ex) {
|
||||
\OCP\Util::writeLog('cron', $ex->getMessage(), \OCP\Util::FATAL);
|
||||
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
|
||||
} catch (Error $ex) {
|
||||
\OCP\Util::writeLog('cron', $ex->getMessage(), \OCP\Util::FATAL);
|
||||
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue