Skip to content

Commit 894450b

Browse files
committed
Add org.hibernate.orm.jdbc.bind to sql logging group
It's reasonable to treat prepared statement parameters as part of sql. See #36640 (comment)
1 parent fa131fa commit 894450b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Spring Boot includes the following pre-defined logging groups that can be used o
254254
| `org.springframework.core.codec`, `org.springframework.http`, `org.springframework.web`, `org.springframework.boot.actuate.endpoint.web`, `org.springframework.boot.web.servlet.ServletContextInitializerBeans`
255255

256256
| sql
257-
| `org.springframework.jdbc.core`, `org.hibernate.SQL`, `org.jooq.tools.LoggerListener`
257+
| `org.springframework.jdbc.core`, `org.hibernate.SQL`, `org.hibernate.orm.jdbc.bind`, `org.jooq.tools.LoggerListener`
258258
|===
259259

260260

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public class LoggingApplicationListener implements GenericApplicationListener {
153153
loggers.add("web", "org.springframework.boot.web.servlet.ServletContextInitializerBeans");
154154
loggers.add("sql", "org.springframework.jdbc.core");
155155
loggers.add("sql", "org.hibernate.SQL");
156+
loggers.add("sql", "org.hibernate.orm.jdbc.bind");
156157
loggers.add("sql", "org.jooq.tools.LoggerListener");
157158
DEFAULT_GROUP_LOGGERS = Collections.unmodifiableMap(loggers);
158159
}

0 commit comments

Comments
 (0)