Skip to content

Commit 7758c4d

Browse files
samueldlightfootmp911de
authored andcommitted
Add missing log guard to ReactiveCqlTemplate.
Closes #1235
1 parent 359ee9c commit 7758c4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/cql/ReactiveCqlTemplate.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,9 @@ public <T> Flux<T> execute(ReactivePreparedStatementCreator psc, ReactivePrepare
536536

537537
return createFlux(session -> {
538538

539-
logger.debug(String.format("Preparing statement [%s] using %s", toCql(psc), psc));
539+
if (logger.isDebugEnabled()) {
540+
logger.debug(String.format("Preparing statement [%s] using %s", toCql(psc), psc));
541+
}
540542

541543
return psc.createPreparedStatement(session).flatMapMany(ps -> action.doInPreparedStatement(session, ps));
542544
}).onErrorMap(translateException("ReactivePreparedStatementCallback", toCql(psc)));

0 commit comments

Comments
 (0)