From 128b682b7cbc7b0dbe7b5bbd1a099bd36eaf261b Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 5 Mar 2021 09:14:01 +0100 Subject: [PATCH] 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 --- .../lib/Controller/UsersController.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 6311576dff..11c3a85db9 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -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.',