]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log full exception in cron instead of only the message 7821/head
authorMorris Jobke <hey@morrisjobke.de>
Fri, 12 Jan 2018 14:24:28 +0000 (15:24 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 12 Jan 2018 14:34:16 +0000 (15:34 +0100)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
cron.php

index 74935db0da913795157b15da65bed9313e88e6b8..9bdb12eeaae369ece2b74dfacb6f5d859559359e 100644 (file)
--- a/cron.php
+++ b/cron.php
@@ -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']);
 }