Changed log from debug to error with exception info
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@119210 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
534b1aa042
commit
94e7e8d700
|
@ -97,6 +97,7 @@ public abstract class AccountingPersistenceFactory {
|
||||||
* foundPersistence.accountWithFallback(TestUsageRecord.createTestServiceUsageRecord());
|
* foundPersistence.accountWithFallback(TestUsageRecord.createTestServiceUsageRecord());
|
||||||
*/
|
*/
|
||||||
persistence = foundPersistence;
|
persistence = foundPersistence;
|
||||||
|
logger.debug("{} will be used.", foundPersistenceClassName);
|
||||||
break;
|
break;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error(String.format("%s not initialized correctly. It will not be used. Trying the next one if any.", foundPersistence.getClass().getSimpleName()), e);
|
logger.error(String.format("%s not initialized correctly. It will not be used. Trying the next one if any.", foundPersistence.getClass().getSimpleName()), e);
|
||||||
|
|
Loading…
Reference in New Issue