Skip to content

Commit

Permalink
Log query shape as debug log
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhant Deshmukh <[email protected]>
  • Loading branch information
deshsidd committed Oct 9, 2023
1 parent 9ba8ec1 commit cbc1aeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void categorize(SearchSourceBuilder source) {
QueryShapeVisitor shapeVisitor = new QueryShapeVisitor();
topLevelQueryBuilder.visit(shapeVisitor, 0);
String queryShapeJson = shapeVisitor.prettyPrintTree(" ");
log.info("Query shape : " + queryShapeJson);
log.debug("Query shape : " + queryShapeJson);

// Increment the query counters using Metric Framework
QueryBuilderVisitor queryBuilderVisitor = new QueryBuilderVisitor() {
Expand Down

0 comments on commit cbc1aeb

Please sign in to comment.