Relax logging in SimpleFunctionRegistry

This commit is contained in:
Oleg Zhurakousky
2022-07-25 15:46:13 +02:00
parent efb2b43409
commit 8bb5746487
2 changed files with 4 additions and 29 deletions

View File

@@ -144,12 +144,12 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
public <T> T lookup(Class<?> type, String functionDefinition, String... expectedOutputMimeTypes) {
functionDefinition = this.normalizeFunctionDefinition(functionDefinition);
FunctionInvocationWrapper function = this.doLookup(type, functionDefinition, expectedOutputMimeTypes);
if (logger.isInfoEnabled()) {
if (logger.isDebugEnabled()) {
if (function != null) {
logger.info("Located function: " + function);
logger.debug("Located function: " + function);
}
else {
logger.info("Failed to locate function: " + functionDefinition);
logger.debug("Failed to locate function: " + functionDefinition);
}
}
return (T) function;