From 6887ef900b585e74f4611345bc1c648c3ef64ace Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Wed, 28 Sep 2022 10:58:26 +0200 Subject: [PATCH] WW-5235 Uses debug log level when setting expression max length to avoid cluttering logs --- core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java index 49be23790..c5430491b 100644 --- a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java +++ b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java @@ -268,10 +268,10 @@ public class OgnlUtil { try { if (maxLength == null || maxLength.isEmpty()) { Ognl.applyExpressionMaxLength(null); - LOG.info("OGNL Expression Max Length disabled."); + LOG.warn("OGNL Expression Max Length disabled."); } else { Ognl.applyExpressionMaxLength(Integer.parseInt(maxLength)); - LOG.info("OGNL Expression Max Length enabled with {}.", maxLength); + LOG.debug("OGNL Expression Max Length enabled with {}.", maxLength); } } catch (Exception ex) { LOG.error("Unable to set OGNL Expression Max Length {}.", maxLength); // Help configuration debugging.