Use logger instead of System.out; Fixes gh-1005

This commit is contained in:
groat-mike
2023-03-03 19:49:04 -05:00
parent 38411d424b
commit 28cef69ea3

View File

@@ -927,7 +927,11 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
if (inputValue instanceof Message && !this.isInputTypeMessage()) {
inputValue = ((Message) inputValue).getPayload();
}
System.out.println("Invoking function: " + this + "with input type: " + this.getInputType());
if (logger.isDebugEnabled()) {
logger.debug("Invoking function: " + this + "with input type: " + this.getInputType());
}
Object result = ((Function) this.target).apply(inputValue);
if (result instanceof Publisher && functionInvocationHelper != null) {