From c18e46485bcf447f5f133f35b59cb11665a65934 Mon Sep 17 00:00:00 2001 From: Bo Simonsen Date: Fri, 4 Jan 2019 19:21:30 +0100 Subject: [PATCH] Log to info when performing attribute sanitization (#3729) It is quite common for CAS to perform attribute sanitization, therefore it should not be logged as a warning. --- .../support/DefaultCasProtocolAttributeEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/support/DefaultCasProtocolAttributeEncoder.java b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/support/DefaultCasProtocolAttributeEncoder.java index 9cd34ffb2780..f1b5933f44b9 100644 --- a/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/support/DefaultCasProtocolAttributeEncoder.java +++ b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/support/DefaultCasProtocolAttributeEncoder.java @@ -71,7 +71,7 @@ private static void sanitizeAndTransformAttributeNames(final Map .collect(Collectors.toSet()); if (!attrs.isEmpty()) { - LOGGER.warn("Found [{}] attribute(s) that need to be sanitized/encoded.", attrs); + LOGGER.info("Found [{}] attribute(s) that need to be sanitized/encoded.", attrs); attributes.keySet().removeIf(getSanitizingAttributeNamePredicate()); attrs.forEach(p -> { val key = p.getKey();