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:
parent
f6bff00bdb
commit
283bf59bbc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue