summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-12 17:42:37 +0100
committerGitHub <noreply@github.com>2018-01-12 17:42:37 +0100
commit1a93e57316768f3d07b2a1a6d4ac790d1153691a (patch)
tree944062ca4c4597fd95e756557d014513f6cca5f0
parent84a17f082189514814d4e1c8b317cd704cf9b550 (diff)
parente70edb33dbc0eb03ecc382ac59263b95e2817ac6 (diff)
downloadnextcloud-server-1a93e57316768f3d07b2a1a6d4ac790d1153691a.tar.gz
nextcloud-server-1a93e57316768f3d07b2a1a6d4ac790d1153691a.zip
Merge pull request #7818 from nextcloud/log-full-exception-in-cron
Log full exception in cron instead of only the message
-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']);
}