Skip to content

Commit 48d372d

Browse files
samueldlightfootmp911de
authored andcommitted
Add missing log guard to ReactiveCqlTemplate.
Closes #1235
1 parent 58b237d commit 48d372d

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
@@ -535,7 +535,9 @@ public <T> Flux<T> execute(ReactivePreparedStatementCreator psc, ReactivePrepare
535535

536536
return createFlux(session -> {
537537

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

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

0 commit comments

Comments
 (0)