Improved log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-aggregator-se-plugin@153218 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f27a938456
commit
d4418c58a5
|
@ -139,15 +139,15 @@ public class CouchBaseConnector {
|
||||||
|
|
||||||
for(AggregationType aggregationType : AggregationType.values()){
|
for(AggregationType aggregationType : AggregationType.values()){
|
||||||
for(SUFFIX suffix : SUFFIX.values()){
|
for(SUFFIX suffix : SUFFIX.values()){
|
||||||
try {
|
|
||||||
logger.debug("Trying to get the Bucket for {} {} {}", suffix, recordType, aggregationType);
|
logger.debug("Trying to get the Bucket for {} {} {}", suffix, recordType, aggregationType);
|
||||||
String bucketKey = getBucketKey(recordType, aggregationType, suffix);
|
String bucketKey = getBucketKey(recordType, aggregationType, suffix);
|
||||||
String bucketName = configuration.getProperty(bucketKey);
|
String bucketName = configuration.getProperty(bucketKey);
|
||||||
logger.debug("Bucket for {} {} {} is {}. Going to open it.", suffix, recordType, aggregationType, bucketName);
|
logger.debug("Bucket for {} {} {} is {}. Going to open it.", suffix, recordType, aggregationType, bucketName);
|
||||||
|
try {
|
||||||
Bucket bucket = cluster.openBucket(bucketName, configuration.getProperty(PASSWORD_PROPERTY_KEY));
|
Bucket bucket = cluster.openBucket(bucketName, configuration.getProperty(PASSWORD_PROPERTY_KEY));
|
||||||
connectionMap.put(bucketKey, bucket);
|
connectionMap.put(bucketKey, bucket);
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
logger.warn("Unable to open Bucket for type {}. This normally means that is not configured.", recordClass);
|
logger.warn("Unable to open Bucket {} for {} {} {}. This normally means that is not configured.", bucketName, suffix, recordType, aggregationType, recordClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue