Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-06 16:46:52 +0300
committerRobin Appelman <robin@icewind.nl>2017-02-08 17:17:03 +0300
commite7e614d801a84260821c7de0f3ae9ba57f733150 (patch)
treefe5c67c6aaae1db68614428aa50c91a075b11d37 /ocs
parenta359d0d7c7370cef5115ce5c04e438979ef103d6 (diff)
log ocs exceptions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 79e74f20cdf..31eb0687955 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -90,6 +90,7 @@ try {
} catch (\OC\User\LoginException $e) {
OC_API::respond(new OC_OCS_Result(null, \OCP\API::RESPOND_UNAUTHORISED, 'Unauthorised'));
} catch (\Exception $e) {
+ \OC::$server->getLogger()->logException($e);
OC_API::setContentType();
OC_OCS::notFound();
}