From 4744733761e8e85b98aba398f48cc087ce240444 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 16 Oct 2023 13:37:43 +0200 Subject: [PATCH] simplify logs about jexl --- lib/plugins/jexlParser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plugins/jexlParser.js b/lib/plugins/jexlParser.js index 1062ad71e..8dec6f248 100644 --- a/lib/plugins/jexlParser.js +++ b/lib/plugins/jexlParser.js @@ -45,7 +45,7 @@ function parse(expression, context, callback) { result = jexl.evalSync(expression, context); //avoid undefined result result = result !== undefined ? result : null; - logger.debug(logContext, 'parse expression "[%j]" over "[%j]" result "[%j]" ', expression, context, result); + logger.debug(logContext, 'parse expression %j over %j result %j ', expression, context, result); } catch (e) { error = new errors.InvalidExpression(expression); if (callback) { @@ -103,7 +103,7 @@ function applyExpression(expression, context, typeInformation) { // https://github.com/TomFrost/Jexl/issues/133 deleteNulls(context); const result = parse(expression, context); - logger.debug(logContext, 'applyExpression "[%j]" over "[%j]" result "[%j]" ', expression, context, result); + logger.debug(logContext, 'applyExpression %j over %j result %j ', expression, context, result); const expressionResult = result !== undefined ? result : expression; return expressionResult; } @@ -126,7 +126,7 @@ function contextAvailable(expression, context) { jexl.evalSync(expression, context); return true; } catch (e) { - logger.info(logContext, 'Wrong expression found "[%j]" over "[%j]", it will be ignored', expression, context); + logger.info(logContext, 'Wrong expression found %j over %j, it will be ignored', expression, context); return false; } }