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