From 25775790d53ae25401f7b07f423b03cd9ffea6db Mon Sep 17 00:00:00 2001 From: Markus Herhoffer Date: Thu, 19 Dec 2024 18:58:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20(#197):=20Log=20correct=20except?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/app/hopps/org/delegates/CreateUserInKeycloak.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.hopps.org/src/main/java/app/hopps/org/delegates/CreateUserInKeycloak.java b/backend/app.hopps.org/src/main/java/app/hopps/org/delegates/CreateUserInKeycloak.java index bfcdbabb..6f1cc6ee 100644 --- a/backend/app.hopps.org/src/main/java/app/hopps/org/delegates/CreateUserInKeycloak.java +++ b/backend/app.hopps.org/src/main/java/app/hopps/org/delegates/CreateUserInKeycloak.java @@ -82,8 +82,8 @@ private RoleRepresentation createOwnerRole(RealmResource realmResource, String o ownerRole.setName(ownerRoleName); try { realmResource.roles().create(ownerRole); - } catch (Exception ignored) { - LOG.warn("Could not create owner role: {}", ownerRoleName, e); + } catch (Exception roleException) { + LOG.warn("Could not create owner role: {}", ownerRoleName, roleException); } ownerRole = realmResource.roles().get(ownerRoleName).toRepresentation();