summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']);
}