diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-12 15:24:28 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-12 15:24:28 +0100 |
commit | e70edb33dbc0eb03ecc382ac59263b95e2817ac6 (patch) | |
tree | 62c72b6f109f48241865647dd2c76061336206f5 /cron.php | |
parent | 33a6e265b24f7da3092fb55d50ef14e8ada6858d (diff) | |
download | nextcloud-server-e70edb33dbc0eb03ecc382ac59263b95e2817ac6.tar.gz nextcloud-server-e70edb33dbc0eb03ecc382ac59263b95e2817ac6.zip |
Log full exception in cron instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'cron.php')
-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']); } |