Skip to content

Commit 4308a04

Browse files
committed
Refine EclipseLink SQL logging
Issue: SPR-12528
1 parent 431aed3 commit 4308a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-orm/src/main/java/org/springframework/orm/jpa/vendor/EclipseLinkJpaVendorAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ else if (getDatabase() != null) {
7676
PersistenceUnitProperties.DDL_DATABASE_GENERATION);
7777
}
7878
if (isShowSql()) {
79-
jpaProperties.put(PersistenceUnitProperties.LOGGING_LEVEL, Level.FINE.toString());
79+
jpaProperties.put(PersistenceUnitProperties.CATEGORY_LOGGING_LEVEL_ +
80+
org.eclipse.persistence.logging.SessionLog.SQL, Level.FINE.toString());
8081
}
8182

8283
return jpaProperties;

0 commit comments

Comments
 (0)