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:
Roeland Jago Douma 2021-03-05 09:14:01 +01:00
parent ca1eed96be
commit 128b682b7c
1 changed files with 6 additions and 5 deletions

View File

@ -446,11 +446,12 @@ class UsersController extends AUserData {
);
throw $e;
} catch (\InvalidArgumentException $e) {
$this->logger->logException($e, [
'message' => 'Failed addUser attempt with invalid argument exeption.',
'level' => ILogger::ERROR,
'app' => 'ocs_api',
]);
$this->logger->error('Failed addUser attempt with invalid argument exeption.',
[
'app' => 'ocs_api',
'exception' => $e,
]
);
throw new OCSException($e->getMessage(), 101);
} catch (\Exception $e) {
$this->logger->error('Failed addUser attempt with exception.',