Skip to content

Commit 01629f5

Browse files
samueldlightfootmp911de
authored andcommitted
Add missing log guard to ReactiveCqlTemplate.
Closes #1235
1 parent fba813b commit 01629f5

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

470470
return createFlux(session -> {
471471

472-
logger.debug(String.format("Preparing statement [%s] using %s", toCql(psc), psc));
472+
if (logger.isDebugEnabled()) {
473+
logger.debug(String.format("Preparing statement [%s] using %s", toCql(psc), psc));
474+
}
473475

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

0 commit comments

Comments
 (0)