Skip to content

Commit

Permalink
refactor log for fallback mechanism (#1402)
Browse files Browse the repository at this point in the history
Co-authored-by: TVerdesOprea <[email protected]>
  • Loading branch information
opreateodora and TVerdesOprea authored Jan 31, 2023
1 parent 4465c92 commit 4b836dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b836dc

Please sign in to comment.