From e7e614d801a84260821c7de0f3ae9ba57f733150 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 6 Feb 2017 14:46:52 +0100 Subject: log ocs exceptions Signed-off-by: Robin Appelman --- ocs/v1.php | 1 + 1 file changed, 1 insertion(+) (limited to 'ocs') 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(); } -- cgit v1.2.3