Merge pull request #7821 from nextcloud/12-7818

[stable12] Log full exception in cron instead of only the message
This commit is contained in:
Roeland Jago Douma 2018-01-12 22:40:05 +01:00 committed by GitHub
commit 392cdd8cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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']);
}