Fixed error after merge in UsersController
This was moved to the LoggerInterface so the recent merge of #25589 broke master. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ca1eed96be
commit
128b682b7c
|
@ -446,11 +446,12 @@ class UsersController extends AUserData {
|
||||||
);
|
);
|
||||||
throw $e;
|
throw $e;
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
$this->logger->logException($e, [
|
$this->logger->error('Failed addUser attempt with invalid argument exeption.',
|
||||||
'message' => 'Failed addUser attempt with invalid argument exeption.',
|
[
|
||||||
'level' => ILogger::ERROR,
|
|
||||||
'app' => 'ocs_api',
|
'app' => 'ocs_api',
|
||||||
]);
|
'exception' => $e,
|
||||||
|
]
|
||||||
|
);
|
||||||
throw new OCSException($e->getMessage(), 101);
|
throw new OCSException($e->getMessage(), 101);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->logger->error('Failed addUser attempt with exception.',
|
$this->logger->error('Failed addUser attempt with exception.',
|
||||||
|
|
Loading…
Reference in New Issue