[FEAT] DataAccess reduce log levels

This commit is contained in:
Edouard DUPIN 2024-06-02 13:08:48 +02:00
parent 0a307f3f6e
commit 54d4c420f9

View File

@ -903,7 +903,7 @@ public class DataAccess {
for (final OrderBy order : orders) { for (final OrderBy order : orders) {
order.generateQuery(query, tableName); order.generateQuery(query, tableName);
} }
LOGGER.warn("generate the query: '{}'", query.toString()); LOGGER.debug("generate the query: '{}'", query.toString());
// prepare the request: // prepare the request:
final PreparedStatement ps = entry.connection.prepareStatement(query.toString(), final PreparedStatement ps = entry.connection.prepareStatement(query.toString(),
Statement.RETURN_GENERATED_KEYS); Statement.RETURN_GENERATED_KEYS);
@ -1430,7 +1430,7 @@ public class DataAccess {
} else if (limits.size() > 1) { } else if (limits.size() > 1) {
throw new DataAccessException("Request with multiple 'limit'..."); throw new DataAccessException("Request with multiple 'limit'...");
} }
LOGGER.warn("generate the query: '{}'", query.toString()); LOGGER.debug("generate the query: '{}'", query.toString());
// prepare the request: // prepare the request:
final PreparedStatement ps = entry.connection.prepareStatement(query.toString(), final PreparedStatement ps = entry.connection.prepareStatement(query.toString(),
Statement.RETURN_GENERATED_KEYS); Statement.RETURN_GENERATED_KEYS);
@ -1535,7 +1535,7 @@ public class DataAccess {
} else if (limits.size() > 1) { } else if (limits.size() > 1) {
throw new DataAccessException("Request with multiple 'limit'..."); throw new DataAccessException("Request with multiple 'limit'...");
} }
LOGGER.warn("generate the query: '{}'", query.toString()); LOGGER.debug("generate the query: '{}'", query.toString());
// prepare the request: // prepare the request:
final PreparedStatement ps = entry.connection.prepareStatement(query.toString(), final PreparedStatement ps = entry.connection.prepareStatement(query.toString(),
Statement.RETURN_GENERATED_KEYS); Statement.RETURN_GENERATED_KEYS);
@ -1824,7 +1824,7 @@ public class DataAccess {
} else if (limits.size() > 1) { } else if (limits.size() > 1) {
throw new DataAccessException("Request with multiple 'limit'..."); throw new DataAccessException("Request with multiple 'limit'...");
} }
LOGGER.warn("generate the query: '{}'", query.toString()); LOGGER.debug("generate the query: '{}'", query.toString());
// prepare the request: // prepare the request:
final PreparedStatement ps = entry.connection.prepareStatement(query.toString(), final PreparedStatement ps = entry.connection.prepareStatement(query.toString(),
Statement.RETURN_GENERATED_KEYS); Statement.RETURN_GENERATED_KEYS);