From a76067676faef16d970e7746952f7755178cec30 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Tue, 26 Nov 2024 18:26:41 +0100 Subject: [PATCH] update logging --- .../impl/metadata/NextGenDynamicMediaMetadataServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/wcm/handler/mediasource/ngdm/impl/metadata/NextGenDynamicMediaMetadataServiceImpl.java b/src/main/java/io/wcm/handler/mediasource/ngdm/impl/metadata/NextGenDynamicMediaMetadataServiceImpl.java index b036af1f..56896cf8 100644 --- a/src/main/java/io/wcm/handler/mediasource/ngdm/impl/metadata/NextGenDynamicMediaMetadataServiceImpl.java +++ b/src/main/java/io/wcm/handler/mediasource/ngdm/impl/metadata/NextGenDynamicMediaMetadataServiceImpl.java @@ -148,8 +148,8 @@ private void activate(Config config) { if (log.isTraceEnabled()) { log.trace("Authentication configuration: imsTokenApiUrl={}, authenticationClientId={}, authenticationClientSecret={}, authenticationScope={}", StringUtils.defaultString(imsTokenApiUrl), - StringUtils.repeat('*', authenticationClientId.length()), - StringUtils.repeat('*', authenticationClientSecret.length()), + StringUtils.isNotBlank(authenticationClientId) ? "***" : "", + StringUtils.isNotBlank(authenticationClientSecret) ? "***" : "", StringUtils.defaultString(authenticationScope)); } if (StringUtils.isNoneBlank(imsTokenApiUrl, authenticationClientId, authenticationClientSecret, authenticationScope)) {