Browse Source

Log full exception in cron instead of only the message

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v14.0.0beta1
Morris Jobke 6 years ago
parent
commit
e70edb33db
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      cron.php

+ 2
- 2
cron.php View File

@@ -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…
Cancel
Save