Improved logging
This commit is contained in:
parent
aae19295ca
commit
4d3e97a922
|
@ -106,6 +106,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
|
|||
Set<String> requestedTableField = query.getRequestedTableField();
|
||||
RecordToDBFields recordToDBMapper = query.getRecordToDBMapper();
|
||||
|
||||
logger.trace("Going to request the following query: {}", sql);
|
||||
ResultSet resultSet = statement.executeQuery(sql);
|
||||
|
||||
while (resultSet.next()) {
|
||||
|
@ -207,6 +208,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
|
|||
// List<String> requestedTableField = query.getRequestedTableField();
|
||||
RecordToDBFields recordToDBMapper = query.getRecordToDBMapper();
|
||||
|
||||
logger.trace("Going to request the following query: {}", sql);
|
||||
ResultSet resultSet = statement.executeQuery(sql);
|
||||
|
||||
String tableFieldORderingProperty = recordToDBMapper.getTableField(orderingProperty);
|
||||
|
@ -318,6 +320,8 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
|
|||
String sql = query.getDinstinctValuesQuery();
|
||||
|
||||
SortedSet<String> providersIds = new TreeSet<>();
|
||||
|
||||
logger.trace("Going to request the following query: {}", sql);
|
||||
ResultSet resultSet = statement.executeQuery(sql);
|
||||
|
||||
while (resultSet.next()) {
|
||||
|
|
|
@ -189,6 +189,7 @@ public class AccountingPersistenceQueryPostgreSQLTest extends ContextTest {
|
|||
logger.debug("{}", numberedFilter);
|
||||
}
|
||||
|
||||
logger.debug("----Only first 3 results");
|
||||
numberedFilters = accountingPersistenceQueryPostgreSQL.getFilterValues(clz, temporalConstraint, filters, key, 3);
|
||||
for(NumberedFilter numberedFilter : numberedFilters) {
|
||||
logger.debug("{}", numberedFilter);
|
||||
|
|
Loading…
Reference in New Issue