From 2a38605545e26ce68a37e5ebb877fd9c9875a37d Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 17 Jan 2018 15:21:56 +0100 Subject: Properly log the full exception instead of only the message Signed-off-by: Morris Jobke --- lib/private/Installer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/private/Installer.php') diff --git a/lib/private/Installer.php b/lib/private/Installer.php index 1c6c3915b41..ed654c2b241 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -195,7 +195,10 @@ class Installer { try { $this->downloadApp($appId); } catch (\Exception $e) { - $this->logger->error($e->getMessage(), ['app' => 'core']); + $this->logger->logException($e, [ + 'level' => \OCP\Util::ERROR, + 'app' => 'core', + ]); return false; } return OC_App::updateApp($appId); -- cgit v1.2.3