From cd9900a8b01b902b9842d1329d82b2d7399e7300 Mon Sep 17 00:00:00 2001 From: MarcGiffing Date: Mon, 18 Mar 2024 19:38:19 +0100 Subject: [PATCH] Logging of Expression Parsing #268 (#272) --- .../spring/boot/starter/service/ExpressionService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bucket4j-spring-boot-starter/src/main/java/com/giffing/bucket4j/spring/boot/starter/service/ExpressionService.java b/bucket4j-spring-boot-starter/src/main/java/com/giffing/bucket4j/spring/boot/starter/service/ExpressionService.java index 8d5e362b..822d0197 100644 --- a/bucket4j-spring-boot-starter/src/main/java/com/giffing/bucket4j/spring/boot/starter/service/ExpressionService.java +++ b/bucket4j-spring-boot-starter/src/main/java/com/giffing/bucket4j/spring/boot/starter/service/ExpressionService.java @@ -25,7 +25,7 @@ public String parseString(String expression, ExpressionParams params) { var context = getContext(params.getParams()); var expr = expressionParser.parseExpression(expression); String result = expr.getValue(context, params.getRootObject(), String.class); - log.info("parse-string-expression;result:{};expression:{};root:{};params:{}", result, expression, params.getRootObject(), params.getParams()); + log.debug("parse-string-expression;result:{};expression:{};root:{};params:{}", result, expression, params.getRootObject(), params.getParams()); return result; } @@ -33,7 +33,7 @@ public Boolean parseBoolean(String expression, ExpressionParams params) { var context = getContext(params.getParams()); var expr = expressionParser.parseExpression(expression); boolean result = Boolean.TRUE.equals(expr.getValue(context, params.getRootObject(), Boolean.class)); - log.info("parse-boolean-expression;result:{};expression:{};root:{};params:{}", result, expression, params.getRootObject(), params.getParams()); + log.debug("parse-boolean-expression;result:{};expression:{};root:{};params:{}", result, expression, params.getRootObject(), params.getParams()); return result; }