Browse Source

log ocs exceptions

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v12.0.0beta1
Robin Appelman 7 years ago
parent
commit
e7e614d801
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      ocs/v1.php

+ 1
- 0
ocs/v1.php View File

@@ -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();
}

Loading…
Cancel
Save