Skip to content

Commit f770aab

Browse files
committed
fix: change log level for tool execution errors
- Changed log level for tool execution errors from DEBUG to ERROR. Signed-off-by: YunKui Lu <[email protected]>
1 parent dd7598a commit f770aab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-ai-model/src/main/java/org/springframework/ai/tool/execution/DefaultToolExecutionExceptionProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Collections;
2020
import java.util.List;
21+
2122
import org.slf4j.Logger;
2223
import org.slf4j.LoggerFactory;
2324

@@ -63,7 +64,7 @@ public String process(ToolExecutionException exception) {
6364
if (this.alwaysThrow) {
6465
throw exception;
6566
}
66-
logger.debug("Exception thrown by tool: {}. Message: {}", exception.getToolDefinition().name(),
67+
logger.error("Exception thrown by tool: {}. Message: {}", exception.getToolDefinition().name(),
6768
exception.getMessage());
6869
return exception.getMessage();
6970
}

0 commit comments

Comments
 (0)