mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Log full exception in cron instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
0ce9a66920
commit
b61b357196
1 changed files with 2 additions and 2 deletions
4
cron.php
4
cron.php
|
|
@ -158,7 +158,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 a new issue