aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-12 15:24:28 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-12 15:24:28 +0100
commite70edb33dbc0eb03ecc382ac59263b95e2817ac6 (patch)
tree62c72b6f109f48241865647dd2c76061336206f5 /cron.php
parent33a6e265b24f7da3092fb55d50ef14e8ada6858d (diff)
downloadnextcloud-server-e70edb33dbc0eb03ecc382ac59263b95e2817ac6.tar.gz
nextcloud-server-e70edb33dbc0eb03ecc382ac59263b95e2817ac6.zip
Log full exception in cron instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index acc7eaae501..643c42688df 100644
--- a/cron.php
+++ b/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']);
}