Made query logging debug only.
This commit is contained in:
parent
85627fb8ad
commit
3493003588
|
@ -75,7 +75,14 @@ public class JdbcEntitySearcher<T> implements EntitySearcher<T> {
|
||||||
sqlBuilder.append('\n').append(pagingSql);
|
sqlBuilder.append('\n').append(pagingSql);
|
||||||
}
|
}
|
||||||
String sql = sqlBuilder.toString();
|
String sql = sqlBuilder.toString();
|
||||||
logger.info("Searching with query:\n{}\nWith arguments: {}", sql, baseQueryAndArgs.second().stream().map(Pair::second).map(Object::toString).collect(Collectors.joining(", ")));
|
logger.debug(
|
||||||
|
"Searching with query:\n{}\nWith arguments: {}",
|
||||||
|
sql,
|
||||||
|
baseQueryAndArgs.second().stream()
|
||||||
|
.map(Pair::second)
|
||||||
|
.map(Object::toString)
|
||||||
|
.collect(Collectors.joining(", "))
|
||||||
|
);
|
||||||
try (var stmt = conn.prepareStatement(sql)) {
|
try (var stmt = conn.prepareStatement(sql)) {
|
||||||
applyArgs(stmt, baseQueryAndArgs.second());
|
applyArgs(stmt, baseQueryAndArgs.second());
|
||||||
ResultSet rs = stmt.executeQuery();
|
ResultSet rs = stmt.executeQuery();
|
||||||
|
|
Loading…
Reference in New Issue