From 4b836dc5e77f61284bcf9a9a8774c51c475119a3 Mon Sep 17 00:00:00 2001 From: opreateodora <74269902+opreateodora@users.noreply.github.com> Date: Tue, 31 Jan 2023 15:35:52 +0200 Subject: [PATCH] refactor log for fallback mechanism (#1402) Co-authored-by: TVerdesOprea --- .../lang/runtime/bindings/scripts/ScriptEvaluator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java b/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java index c68e374f6c..929c77057b 100644 --- a/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java +++ b/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java @@ -152,7 +152,9 @@ private Value doEvaluateExpressionPythonExecutor(String expr, result = pythonExecutorService.eval( buildAddFunctionsScriptForExternalPython(functionDependencies), expr, pythonContext); } catch (ExternalPythonScriptException exception) { - logger.error("Could not evaluate expressions on python executor, retrying with python"); + if (logger.isDebugEnabled()) { + logger.warn("Could not evaluate expressions on python executor, retrying with python"); + } result = pythonRuntimeService.eval( buildAddFunctionsScriptForExternalPython(functionDependencies), expr, pythonContext); }