From d41753ec1118789345b8f45018e7f95012ba81d2 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Thu, 16 Nov 2023 14:05:39 -0600 Subject: [PATCH] Remove verbose debug logger (#102318) This commit removes a debug logger which can be overly verbose. (cherry picked from commit 19a762b8f541b0bb94bd5b160a6e6b2ce14468b9) --- .../xpack/watcher/input/search/ExecutableSearchInput.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/input/search/ExecutableSearchInput.java b/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/input/search/ExecutableSearchInput.java index 611212a8b1ccf..3537925eb4bd2 100644 --- a/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/input/search/ExecutableSearchInput.java +++ b/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/input/search/ExecutableSearchInput.java @@ -18,7 +18,6 @@ import org.elasticsearch.common.xcontent.XContentHelper; import org.elasticsearch.core.TimeValue; import org.elasticsearch.script.Script; -import org.elasticsearch.search.SearchHit; import org.elasticsearch.xcontent.NamedXContentRegistry; import org.elasticsearch.xcontent.XContentParser; import org.elasticsearch.xcontent.XContentType; @@ -91,9 +90,6 @@ SearchInput.Result doExecute(WatchExecutionContext ctx, WatcherSearchTemplateReq if (logger.isDebugEnabled()) { logger.debug("[{}] found [{}] hits", ctx.id(), response.getHits().getTotalHits().value); - for (SearchHit hit : response.getHits()) { - logger.debug("[{}] hit [{}]", ctx.id(), hit.getSourceAsMap()); - } } final Payload payload;