From 34930035886c3e606db8191431a614bd5521e409 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Fri, 2 Feb 2024 12:46:53 -0500 Subject: [PATCH] Made query logging debug only. --- .../perfin/data/search/JdbcEntitySearcher.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/andrewlalis/perfin/data/search/JdbcEntitySearcher.java b/src/main/java/com/andrewlalis/perfin/data/search/JdbcEntitySearcher.java index a1e9bbe..7e2d46f 100644 --- a/src/main/java/com/andrewlalis/perfin/data/search/JdbcEntitySearcher.java +++ b/src/main/java/com/andrewlalis/perfin/data/search/JdbcEntitySearcher.java @@ -75,7 +75,14 @@ public class JdbcEntitySearcher implements EntitySearcher { sqlBuilder.append('\n').append(pagingSql); } 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)) { applyArgs(stmt, baseQueryAndArgs.second()); ResultSet rs = stmt.executeQuery();