diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-17 17:21:56 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-23 12:57:21 +0300 |
commit | 2a38605545e26ce68a37e5ebb877fd9c9875a37d (patch) | |
tree | a149433f3fdeae3b4615061b495e4c523328a9a6 /core | |
parent | 520f2fd6ea3661d5d49517c7265dd8d7515036ac (diff) |
Properly log the full exception instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/update.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 239b073dc9e..e2bd03b491e 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -207,6 +207,10 @@ if (OC::checkUpgrade(false)) { try { $updater->upgrade(); } catch (\Exception $e) { + \OC::$server->getLogger()->logException($e, [ + 'level' => \OCP\Util::ERROR, + 'app' => 'update', + ]); $eventSource->send('failure', get_class($e) . ': ' . $e->getMessage()); $eventSource->close(); exit(); |