Skip to content

Commit

Permalink
updates logging levels on janusgraph-couchbase
Browse files Browse the repository at this point in the history
  • Loading branch information
chedim committed Feb 21, 2025
1 parent f34f0b1 commit 53b691f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@ protected void open(Bucket bucket, String scopeName) throws PermanentBackendExce
//log.info("got {} vs existing {} ", name, cs.name());

if (cs.name().equals(collectionName)) {
LOGGER.info("Using existing collection " + bucketName + "." + scopeName + "." + cs.name());
LOGGER.debug("Using existing collection " + bucketName + "." + scopeName + "." + cs.name());
storeDb = bucket.scope(scopeName).collection(collectionName);
found = true;
break;
}
}
if (!found) {
LOGGER.info("Creating new collection " + bucket.name() + "." + scopeName + "." + collectionName);
LOGGER.debug("Creating new collection " + bucket.name() + "." + scopeName + "." + collectionName);
CollectionSpec collectionSpec = CollectionSpec.create(collectionName, scopeName, Duration.ZERO);
cm.createCollection(collectionSpec);
storeDb = bucket.scope(scopeName).collection(collectionName);
Thread.sleep(2000);
LOGGER.info("Creating primary index...");
LOGGER.debug("Creating primary index...");
//cluster.queryIndexes().createPrimaryIndex("`"+bucketName+"`.`"+defaultScopeName+"`.`"+name+"`", CreatePrimaryQueryIndexOptions.createPrimaryQueryIndexOptions().ignoreIfExists(true));
cluster.query("CREATE PRIMARY INDEX ON `default`:`" + bucketName + "`.`" + scopeName + "`.`" + collectionName + "`");
Thread.sleep(1000);
Expand Down Expand Up @@ -346,7 +346,7 @@ private List<CouchbaseColumn> convertAndSortColumns(JsonArray columnsArray, int
column.getString(CouchbaseColumn.VALUE),
column.getLong(CouchbaseColumn.EXPIRE),
column.getInt(CouchbaseColumn.TTL)));
LOGGER.info(i + "." + column);
LOGGER.debug(i + "." + column);
i++;

}
Expand Down

0 comments on commit 53b691f

Please sign in to comment.