Skip to content

Commit

Permalink
Remove annoying shard output (#1546)
Browse files Browse the repository at this point in the history
* Remove annoying shard output

* Make DevRunner depend on the mesh.yml value, as expected

* Changelog

---------

Co-authored-by: Serhii Plyhun <S.Plyhun@gentics.com>
  • Loading branch information
plyhun and plyhun authored Oct 18, 2023
1 parent a5480eb commit b0ce646
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions LTS-CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ All fixes and changes in LTS releases will be released the next minor release. C
== 1.10.17 (TBD)

icon:check[] GraphQL: Parent loading has been speeded up by using a batch data loading.
icon:check[] Search: Minor logging changes in the search engine, making it less annoying.

[[v1.10.16]]
== 1.10.16 (04.10.2023)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ private void advanceScroll() {
RequestBuilder<JsonObject> scrollRequest = client.searchScroll(json, null);
currentResponse = scrollRequest.sync();
} catch (HttpErrorException e) {
System.out.println(e.toString());
log.error("Error while handling scroll request.", e);
throw new RuntimeException("Error while handling scroll request", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public Single<Map<String, String>> loadVersionsFromIndex(String indexName, Bucke
query.put("query", bucket.rangeQuery());
query.put("sort", new JsonArray().add("_doc"));

System.out.println(query.encodePrettily());
log.debug(query.encodePrettily());
log.trace("Using query {\n" + query.encodePrettily() + "\n");
RequestBuilder<JsonObject> builder = client.searchScroll(query, "1m", fullIndexName);
JsonObject result = new JsonObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ private Map<String, Map<String, HibNodeFieldContainer>> loadVersionsFromGraph(Hi
indexLanguages.contains(languageTag)
? languageTag
: null, version.getMicroschemaVersionHash(branch));
},
Collectors.toMap(c -> contentDao.getNode(c).getUuid() + "-" + c.getLanguageTag(), Function.identity())));
}, Collectors.toMap(c -> contentDao.getNode(c).getUuid() + "-" + c.getLanguageTag(), Function.identity())));
});
}

Expand Down
2 changes: 0 additions & 2 deletions server/src/main/java/com/gentics/mesh/server/DevRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public static void main(String[] args) throws Exception {
defaultOption.getDebugInfoOptions().setLogEnabled(false);
OrientDBMeshOptions options = OptionsLoader.createOrloadOptions(OrientDBMeshOptions.class, defaultOption, args);

options.getSearchOptions().disable();

Mesh mesh = Mesh.create(options);
mesh.setCustomLoader((vertx) -> {
JsonObject config = new JsonObject();
Expand Down

0 comments on commit b0ce646

Please sign in to comment.