From 7d2fd069a149f139e31ed3d34a8c3bb32c84abff Mon Sep 17 00:00:00 2001 From: David Zane Date: Mon, 23 Sep 2024 12:04:51 -0700 Subject: [PATCH] Save temp changes for testing Signed-off-by: David Zane --- build.gradle | 10 +++++----- .../service/categorizer/SearchQueryCategorizer.java | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 454a75e4..4ef616ae 100644 --- a/build.gradle +++ b/build.gradle @@ -105,11 +105,11 @@ spotless { include '**/*.java' exclude '**/build/**', '**/build-*/**' } - removeUnusedImports() - importOrder() - eclipse().configFile rootProject.file('config/formatterConfig.xml') - trimTrailingWhitespace() - endWithNewline() +// removeUnusedImports() +// importOrder() +// eclipse().configFile rootProject.file('config/formatterConfig.xml') +// trimTrailingWhitespace() +// endWithNewline() } } diff --git a/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java b/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java index df3cb7bc..c9a05b99 100644 --- a/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java +++ b/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java @@ -88,9 +88,10 @@ public void categorize(SearchQueryRecord record) { incrementQueryAggregationCounters(source.aggregations(), measurements); incrementQuerySortCounters(source.sorts(), measurements); - if (logger.isTraceEnabled()) { + if (true) { String searchShape = QueryShapeGenerator.buildShape(source, true); logger.trace(searchShape); + System.out.println(searchShape); } }