diff options
author | Robin Appelman <robin@icewind.nl> | 2017-02-06 14:46:52 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-02-08 15:17:03 +0100 |
commit | e7e614d801a84260821c7de0f3ae9ba57f733150 (patch) | |
tree | fe5c67c6aaae1db68614428aa50c91a075b11d37 /ocs | |
parent | a359d0d7c7370cef5115ce5c04e438979ef103d6 (diff) | |
download | nextcloud-server-e7e614d801a84260821c7de0f3ae9ba57f733150.tar.gz nextcloud-server-e7e614d801a84260821c7de0f3ae9ba57f733150.zip |
log ocs exceptions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 1 |
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(); } |