From 5aa9410bacd57031fd6b573d3eca09d8a0412cb4 Mon Sep 17 00:00:00 2001 From: Alex Morel Date: Fri, 21 Jun 2024 14:22:04 +0200 Subject: [PATCH] Improve logging --- src/main/java/sh/libre/scim/core/AbstractScimService.java | 4 ++-- src/main/java/sh/libre/scim/core/ScimDispatcher.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/sh/libre/scim/core/AbstractScimService.java b/src/main/java/sh/libre/scim/core/AbstractScimService.java index 53a6738b35..1bad0d8cfe 100644 --- a/src/main/java/sh/libre/scim/core/AbstractScimService.java +++ b/src/main/java/sh/libre/scim/core/AbstractScimService.java @@ -78,7 +78,7 @@ public abstract class AbstractScimService operationToDispatch) { initializeClientsIfNeeded(); userScimServices.forEach(operationToDispatch); - logger.infof("[SCIM] User operation dispatched to %d SCIM clients", userScimServices.size()); + logger.infof("[SCIM] User operation dispatched to %d SCIM server", userScimServices.size()); } public void dispatchGroupModificationToAll(Consumer operationToDispatch) { initializeClientsIfNeeded(); groupScimServices.forEach(operationToDispatch); - logger.infof("[SCIM] Group operation dispatched to %d SCIM clients", groupScimServices.size()); + logger.infof("[SCIM] Group operation dispatched to %d SCIM server", groupScimServices.size()); } public void dispatchUserModificationToOne(ComponentModel scimServerConfiguration, Consumer operationToDispatch) { @@ -87,7 +87,7 @@ public class ScimDispatcher { Optional matchingClient = userScimServices.stream().filter(u -> u.getConfiguration().getId().equals(scimServerConfiguration.getId())).findFirst(); if (matchingClient.isPresent()) { operationToDispatch.accept(matchingClient.get()); - logger.infof("[SCIM] User operation dispatched to SCIM client %s", matchingClient.get().getConfiguration().getId()); + logger.infof("[SCIM] User operation dispatched to SCIM server %s", matchingClient.get().getConfiguration().getId()); } else { logger.error("[SCIM] Could not find a Scim Client matching endpoint configuration" + scimServerConfiguration.getId()); } @@ -100,7 +100,7 @@ public class ScimDispatcher { Optional matchingClient = groupScimServices.stream().filter(u -> u.getConfiguration().getId().equals(scimServerConfiguration.getId())).findFirst(); if (matchingClient.isPresent()) { operationToDispatch.accept(matchingClient.get()); - logger.infof("[SCIM] Group operation dispatched to SCIM client %s", matchingClient.get().getConfiguration().getId()); + logger.infof("[SCIM] Group operation dispatched to SCIM server %s", matchingClient.get().getConfiguration().getId()); } else { logger.error("[SCIM] Could not find a Scim Client matching endpoint configuration" + scimServerConfiguration.getId()); }