Browse Source
Log full exception in cron instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/7818/head
Morris Jobke
8 years ago
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with
2 additions and
2 deletions
-
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']); |
|
|
|
} |