Changed way to log and throw up exception

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-analytics@117435 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-07-22 15:29:06 +00:00
parent f6bff00bdb
commit 283bf59bbc
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class ResourceRecordQuery {
SingleUsageRecord singleUsageRecord = resourceRecordsType.newInstance();
resourceRecords.put(resourceRecordsType, singleUsageRecord.getRequiredFields());
} catch (InstantiationException | IllegalAccessException e) {
logger.error(String.format("Unable to correctly istantiate %s", resourceRecordsType.getSimpleName()), e.getCause());
logger.error(String.format("Unable to correctly istantiate %s", resourceRecordsType.getSimpleName()), e);
}
}