Skip to content

Commit 41f041e

Browse files
committed
Reduced "getParameterType call not supported" log message to single line
Issue: SPR-10185
1 parent 7a9d583 commit 41f041e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/StatementCreatorUtils.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ private static void setNull(PreparedStatement ps, int paramIndex, int sqlType, S
231231
sqlType = ps.getParameterMetaData().getParameterType(paramIndex);
232232
}
233233
catch (Throwable ex) {
234-
logger.debug("JDBC 3.0 getParameterType call not supported", ex);
234+
if (logger.isDebugEnabled()) {
235+
logger.debug("JDBC 3.0 getParameterType call not supported: " + ex);
236+
}
235237
// JDBC driver not compliant with JDBC 3.0
236238
// -> proceed with database-specific checks
237239
try {

0 commit comments

Comments
 (0)