Replaced System.out call with logger.debug. Fixes gh-962

This commit is contained in:
Iván Rodríguez Murillo
2022-11-21 18:29:15 +00:00
parent 6f1421d04e
commit 5c0e88b4a7

View File

@@ -873,7 +873,11 @@ public class SimpleFunctionRegistry implements FunctionRegistry {
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) {