From 20f1523c0e13632708526f4d78de0333fa57b1a9 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 12 Jan 2018 15:24:28 +0100 Subject: [PATCH] Log full exception in cron instead of only the message Signed-off-by: Morris Jobke --- cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.php b/cron.php index acc7eaae50..643c42688d 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']); }