From d6d850913a66cca2dc59507de17cc807eb944bfd Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 7 Sep 2015 09:13:20 +0000 Subject: [PATCH] refs #543: Accounting Manager - When the filters are enabled, the serie generated does not match to the time interval required https://support.d4science.org/issues/543 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-analytics@118912 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../analytics/persistence/AccountingPersistenceQuery.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java b/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java index 7fc24c0..ece13f0 100644 --- a/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java +++ b/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java @@ -11,6 +11,8 @@ import org.gcube.accounting.analytics.Filter; import org.gcube.accounting.analytics.Info; import org.gcube.accounting.analytics.TemporalConstraint; import org.gcube.accounting.datamodel.AggregatedUsageRecord; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/ @@ -18,6 +20,8 @@ import org.gcube.accounting.datamodel.AggregatedUsageRecord; */ public abstract class AccountingPersistenceQuery { + private static final Logger logger = LoggerFactory.getLogger(AccountingPersistenceQuery.class); + protected abstract void prepareConnection(AccountingPersistenceQueryConfiguration configuration) throws Exception; protected abstract Map reallyQuery(@SuppressWarnings("rawtypes") Class usageRecordType, @@ -25,6 +29,9 @@ public abstract class AccountingPersistenceQuery { public Map query(@SuppressWarnings("rawtypes") Class usageRecordType, TemporalConstraint temporalConstraint, List filters) throws Exception{ + logger.trace("Request query: UsageRecordType={}, {}={}, {}s={}", usageRecordType.newInstance().getUsageRecordType(), + TemporalConstraint.class.getSimpleName(), temporalConstraint.toString(), + Filter.class.getSimpleName(), filters); return reallyQuery(usageRecordType, temporalConstraint, filters); }