From ee54a535b3a632669ce01d9e7ac227ed05d3d42b Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 11 Nov 2024 23:09:57 -0300 Subject: [PATCH] Hibernate: Silence DB connection info logging Because: 1. We don't implement the retrieval of information in QuarkusConnectionProvider 2. It's currently being logged even at static init when there is no connection See https://hibernate.atlassian.net/browse/HHH-18454 - Follow up from https://github.com/quarkusio/quarkus/commit/235f0a7535f8f1c50703804a1a59cdf27560994d --- .../hibernate/orm/runtime/graal/DisableLoggingFeature.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/DisableLoggingFeature.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/DisableLoggingFeature.java index ccd4be97371f3..b1ec1897f9ebe 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/DisableLoggingFeature.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/DisableLoggingFeature.java @@ -16,7 +16,8 @@ public class DisableLoggingFeature implements Feature { "org.hibernate.Version", "org.hibernate.annotations.common.Version", "SQL dialect", - "org.hibernate.cfg.Environment" + "org.hibernate.cfg.Environment", + "org.hibernate.orm.connections.pooling" }; private final Map categoryMap = new HashMap<>(CATEGORIES.length);