Skip to content

Commit

Permalink
Logging of Expression Parsing #268 (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcGiffing authored Mar 18, 2024
1 parent ab5d77f commit cd9900a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ public <R> String parseString(String expression, ExpressionParams<R> 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;
}

public <R> Boolean parseBoolean(String expression, ExpressionParams<R> 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;
}

Expand Down

0 comments on commit cd9900a

Please sign in to comment.