diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-12 17:42:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 17:42:37 +0100 |
commit | 1a93e57316768f3d07b2a1a6d4ac790d1153691a (patch) | |
tree | 944062ca4c4597fd95e756557d014513f6cca5f0 | |
parent | 84a17f082189514814d4e1c8b317cd704cf9b550 (diff) | |
parent | e70edb33dbc0eb03ecc382ac59263b95e2817ac6 (diff) | |
download | nextcloud-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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']); } |