From 905d24563178465a3a98681a86086919c7de3ce7 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Wed, 11 Dec 2024 10:18:17 +0100 Subject: [PATCH] Logger cleanup. --- .../wildfly/extension/ai/injection/AILogger.java | 15 +++------------ .../java/org/wildfly/extension/ai/AILogger.java | 4 +--- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/wildfly-ai/injection/src/main/java/org/wildfly/extension/ai/injection/AILogger.java b/wildfly-ai/injection/src/main/java/org/wildfly/extension/ai/injection/AILogger.java index 91b49cd..9b9341c 100644 --- a/wildfly-ai/injection/src/main/java/org/wildfly/extension/ai/injection/AILogger.java +++ b/wildfly-ai/injection/src/main/java/org/wildfly/extension/ai/injection/AILogger.java @@ -5,12 +5,10 @@ package org.wildfly.extension.ai.injection; -import static org.jboss.logging.Logger.Level.WARN; - import java.lang.invoke.MethodHandles; + import org.jboss.logging.BasicLogger; import org.jboss.logging.Logger; -import org.jboss.logging.annotations.LogMessage; import org.jboss.logging.annotations.Message; import org.jboss.logging.annotations.MessageLogger; @@ -18,15 +16,8 @@ public interface AILogger extends BasicLogger { AILogger ROOT_LOGGER = Logger.getMessageLogger(MethodHandles.lookup(), AILogger.class, "org.wildfly.extension.ai.injection"); - /** - * Logs a warning message indicating the address, represented by the {@code address} parameter, could not be - * resolved, so cannot match it to any InetAddress. - */ - @LogMessage(level = WARN) - @Message(id = 1, value = "The deployment does not have Jakarta Dependency Injection enabled.") - void cdiRequired(); - - @Message(id = 2, value = "The bean name %s is expecting a %s while the llm is configured as streaming %s") + @Message(id = 1, value = "The bean name %s is expecting a %s while the llm is configured as streaming %s") IllegalStateException incorrectLLMConfiguration(String name, String typeClass, boolean streaming); + } diff --git a/wildfly-ai/subsystem/src/main/java/org/wildfly/extension/ai/AILogger.java b/wildfly-ai/subsystem/src/main/java/org/wildfly/extension/ai/AILogger.java index d4f73b6..6a3ae1d 100644 --- a/wildfly-ai/subsystem/src/main/java/org/wildfly/extension/ai/AILogger.java +++ b/wildfly-ai/subsystem/src/main/java/org/wildfly/extension/ai/AILogger.java @@ -8,6 +8,7 @@ import static org.jboss.logging.Logger.Level.WARN; import java.lang.invoke.MethodHandles; + import org.jboss.as.controller.OperationFailedException; import org.jboss.as.server.deployment.DeploymentUnit; import org.jboss.as.server.deployment.DeploymentUnitProcessingException; @@ -17,9 +18,6 @@ import org.jboss.logging.annotations.Message; import org.jboss.logging.annotations.MessageLogger; -/** - * @author David M. Lloyd - */ @MessageLogger(projectCode = "WFAI", length = 5) public interface AILogger extends BasicLogger {