From 8ca7a3d69907ad51e3967dfba7c7236dbcd54bd6 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 4 Sep 2024 19:20:25 +0200 Subject: [PATCH] Do not log error in AiServiceMethodImplementationSupport The error is thrown anyway and handled by the error handler. Logging here makes the error logged twice in your typical REST setup (and probably any setup). Fixes #863 --- .../runtime/aiservice/AiServiceMethodImplementationSupport.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/aiservice/AiServiceMethodImplementationSupport.java b/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/aiservice/AiServiceMethodImplementationSupport.java index 494d05b18..8b64b0d16 100644 --- a/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/aiservice/AiServiceMethodImplementationSupport.java +++ b/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/aiservice/AiServiceMethodImplementationSupport.java @@ -117,7 +117,6 @@ public Object implement(Input input) { } return result; } catch (Exception e) { - log.errorv(e, "Execution of {0}#{1} failed", createInfo.getInterfaceName(), createInfo.getMethodName()); if (audit != null) { audit.onFailure(e); auditService.complete(audit);