diff --git a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java index dd17a2b487338..ae4f74b82faf1 100644 --- a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java +++ b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java @@ -10,6 +10,7 @@ import java.util.Map.Entry; import java.util.Optional; import java.util.Set; +import java.util.logging.Level; import java.util.stream.Collectors; import javax.sql.XADataSource; @@ -55,6 +56,7 @@ import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.LogCategoryBuildItem; import io.quarkus.deployment.builditem.RemovedResourceBuildItem; import io.quarkus.deployment.builditem.SslNativeConfigBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; @@ -421,4 +423,9 @@ void registerRowSetSupport( "com.sun.rowset.providers.RIOptimisticProvider", "com.sun.rowset.providers.RIXMLProvider").build()); } + + @BuildStep + void reduceLogging(BuildProducer logCategories) { + logCategories.produce(new LogCategoryBuildItem("io.agroal.pool", Level.WARNING)); + } }