summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-23 11:56:02 +0100
committerGitHub <noreply@github.com>2018-01-23 11:56:02 +0100
commit4537faa5dabdcb2f0b888baa5031e59099e52d6a (patch)
tree0295177ddd5f6736739c503131eb75323561b220 /core/ajax
parent9cb3a79b18bb74e3f79d53aa400d7efa5b2c2174 (diff)
parent2a38605545e26ce68a37e5ebb877fd9c9875a37d (diff)
downloadnextcloud-server-4537faa5dabdcb2f0b888baa5031e59099e52d6a.tar.gz
nextcloud-server-4537faa5dabdcb2f0b888baa5031e59099e52d6a.zip
Merge pull request #7918 from nextcloud/properly-log-exceptions
Properly log the full exception instead of only the message
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index af604299169..22be2a4f60e 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -207,6 +207,10 @@ if (\OCP\Util::needUpgrade()) {
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();