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 5, 2023
1 parent dccc631 commit 0073d73
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 0073d73

Please sign in to comment.