From cbc1aeb12ec3bcc2f7f132b12c4f05a578de38c0 Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Thu, 5 Oct 2023 01:14:42 -0700 Subject: [PATCH] Log query shape as debug log Signed-off-by: Siddhant Deshmukh --- .../org/opensearch/action/search/SearchQueryCategorizor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java b/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java index b8f6da0212e03..d1995f3da01e6 100644 --- a/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java +++ b/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java @@ -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() {